mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-01 15:09:14 +00:00
[group owned repo] enable dir private share for sub folders
This commit is contained in:
@@ -215,6 +215,13 @@ define([
|
|||||||
};
|
};
|
||||||
if (app.pageOptions.is_pro) {
|
if (app.pageOptions.is_pro) {
|
||||||
options.is_admin = dir.is_admin;
|
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);
|
new ShareView(options);
|
||||||
|
@@ -384,6 +384,13 @@ define([
|
|||||||
};
|
};
|
||||||
if (app.pageOptions.is_pro) {
|
if (app.pageOptions.is_pro) {
|
||||||
options.is_admin = dir.is_admin;
|
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);
|
new ShareView(options);
|
||||||
|
@@ -35,7 +35,7 @@ define([
|
|||||||
var enable_dir_private_share = false;
|
var enable_dir_private_share = false;
|
||||||
if (!this.is_virtual &&
|
if (!this.is_virtual &&
|
||||||
(this.is_repo_owner || this.is_admin ||
|
(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;
|
enable_dir_private_share = true;
|
||||||
}
|
}
|
||||||
this.enable_dir_private_share = enable_dir_private_share;
|
this.enable_dir_private_share = enable_dir_private_share;
|
||||||
|
Reference in New Issue
Block a user