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

update user permission

1. update user generate share/upload link permission
2. update user connect iso/android/desktop clients permission
This commit is contained in:
lian
2016-08-22 11:20:08 +08:00
parent f75d6a0dcb
commit fd917c0007
26 changed files with 162 additions and 130 deletions

View File

@@ -29,11 +29,11 @@ define([
this.$("#share-tabs").tabs();
if (!this.repo_encrypted) {
if (!this.repo_encrypted && app.pageOptions.can_generate_share_link) {
this.downloadLinkPanelInit();
}
if (this.is_dir) {
if (this.user_perm == 'rw' && !this.repo_encrypted) {
if (this.user_perm == 'rw' && !this.repo_encrypted && app.pageOptions.can_generate_upload_link) {
this.uploadLinkPanelInit();
}
if (!this.is_virtual && this.is_repo_owner) {
@@ -61,6 +61,8 @@ define([
is_virtual: this.is_virtual,
user_perm: this.user_perm,
repo_id: this.repo_id,
can_generate_share_link: app.pageOptions.can_generate_share_link,
can_generate_upload_link: app.pageOptions.can_generate_upload_link,
repo_encrypted: this.repo_encrypted
}));