mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-04 08:28:11 +00:00
Dir mode optimized (#2992)
* optimized isRepoOwner&isAdmin * optimized isAdmin * optimized encrypted porps * optimized showShareBtn judgement * repair share bug * update showShareBtn logic * delete unnecessary comment
This commit is contained in:
@@ -10,11 +10,15 @@ class RepoInfo {
|
||||
this.owner_name = object.owner_name;
|
||||
this.owner_email = object.owner_email;
|
||||
this.owner_contact_email = object.owner_contact_email;
|
||||
// is repo shared admin;
|
||||
// is repo shared admin && is one of current ordinary group's admins;
|
||||
// is one of current group owned group's admins;
|
||||
this.is_admin = object.is_admin;
|
||||
this.is_virtual = object.is_virtual;
|
||||
this.no_quota = object.no_quota;
|
||||
this.has_been_shared_out = object.has_been_shared_out;
|
||||
this.encrypted = object.encrypted;
|
||||
this.lib_need_decrypt = object.lib_need_decrypt;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user