mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-09 02:42:47 +00:00
* 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
24 lines
644 B
JavaScript
24 lines
644 B
JavaScript
class ShareLink {
|
|
|
|
constructor(object) {
|
|
this.repo_id = object.repo_id;
|
|
this.repo_name = object.repo_name;
|
|
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;
|
|
this.expire_date = object.expire_date;
|
|
this.token = object.token;
|
|
this.link = object.link;
|
|
this.view_cnt = object.view_cnt;
|
|
this.ctime = object.ctime;
|
|
}
|
|
|
|
}
|
|
|
|
export default ShareLink;
|