1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-17 15:53:28 +00:00

return repo/folder permission when get share link list (#4319)

* return repo/folder permission when get share link list

* update permission check when create/update share link

* optimized code

* optimized code

* add can_edit valid

* return can_edit field when get share link list
This commit is contained in:
杨顺强
2019-12-03 13:52:52 +08:00
committed by Daniel Pan
parent c3a6ada019
commit 50e0618a7d
5 changed files with 180 additions and 113 deletions

View File

@@ -6,6 +6,8 @@ class ShareLink {
this.path = object.path;
this.obj_name = object.obj_name;
this.is_dir = object.is_dir;
this.can_edit = object.can_edit;
this.repo_folder_permission = object.repo_folder_permission;
this.permissions = object.permissions;
this.username = object.username;
this.is_expired = object.is_expired;