mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-01 23:20:51 +00:00
[share] only enable 'private share' for encrypted lib
This commit is contained in:
@@ -18,6 +18,7 @@ define([
|
||||
this.is_virtual = options.is_virtual;
|
||||
this.user_perm = options.user_perm;
|
||||
this.repo_id = options.repo_id;
|
||||
this.repo_encrypted = options.repo_encrypted;
|
||||
this.dirent_path = options.dirent_path;
|
||||
this.obj_name = options.obj_name;
|
||||
this.is_dir = options.is_dir;
|
||||
@@ -33,12 +34,14 @@ define([
|
||||
|
||||
this.$("#share-tabs").tabs();
|
||||
|
||||
this.downloadLinkPanelInit();
|
||||
if (!this.repo_encrypted) {
|
||||
this.downloadLinkPanelInit();
|
||||
}
|
||||
if (!this.is_dir && this.is_repo_owner) {
|
||||
this.filePrivateSharePanelInit();
|
||||
}
|
||||
if (this.is_dir) {
|
||||
if (this.user_perm == 'rw') {
|
||||
if (this.user_perm == 'rw' && !this.repo_encrypted) {
|
||||
this.uploadLinkPanelInit();
|
||||
}
|
||||
if (!this.is_virtual && this.is_repo_owner) {
|
||||
@@ -55,7 +58,8 @@ define([
|
||||
is_repo_owner: this.is_repo_owner,
|
||||
is_virtual: this.is_virtual,
|
||||
user_perm: this.user_perm,
|
||||
repo_id: this.repo_id
|
||||
repo_id: this.repo_id,
|
||||
repo_encrypted: this.repo_encrypted
|
||||
}));
|
||||
|
||||
return this;
|
||||
@@ -472,6 +476,7 @@ define([
|
||||
});
|
||||
|
||||
form.removeClass('hide');
|
||||
this.$('.loading-tip').hide();
|
||||
},
|
||||
|
||||
dirPrivateShare: function () {
|
||||
|
Reference in New Issue
Block a user