1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-08-31 14:42:10 +00:00

[group owned repo] enable dir private share for sub folders

This commit is contained in:
llj
2018-08-08 15:37:11 +08:00
parent 8d5fcd0557
commit f096ccdf3d
3 changed files with 15 additions and 1 deletions

View File

@@ -215,6 +215,13 @@ define([
};
if (app.pageOptions.is_pro) {
options.is_admin = dir.is_admin;
if (this.dirView.is_address_book_group_admin) {
$.extend(options, {
is_address_book_group_admin: true,
parent_group_id: this.dirView.parent_group_id
});
}
}
new ShareView(options);

View File

@@ -384,6 +384,13 @@ define([
};
if (app.pageOptions.is_pro) {
options.is_admin = dir.is_admin;
if (this.dirView.is_address_book_group_admin) {
$.extend(options, {
is_address_book_group_admin: true,
parent_group_id: this.dirView.parent_group_id
});
}
}
new ShareView(options);

View File

@@ -35,7 +35,7 @@ define([
var enable_dir_private_share = false;
if (!this.is_virtual &&
(this.is_repo_owner || this.is_admin ||
(this.is_address_book_group_admin && this.dirent_path == '/'))) {
this.is_address_book_group_admin)) {
enable_dir_private_share = true;
}
this.enable_dir_private_share = enable_dir_private_share;