1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-11 03:41:12 +00:00

[group owned repo] share: enable 'share to user/group'

This commit is contained in:
llj
2018-06-09 17:57:39 +08:00
parent fde748909e
commit ce23a58edf
6 changed files with 369 additions and 138 deletions

View File

@@ -16,6 +16,7 @@ define([
template: _.template($('#group-repo-tmpl').html()),
mobileTemplate: _.template($('#group-repo-mobile-tmpl').html()),
renameTemplate: _.template($("#repo-rename-form-template").html()),
events: {
@@ -259,6 +260,14 @@ define([
if (app.pageOptions.is_pro) {
options.is_admin = this.model.get('is_admin'); // 'is_admin': repo is shared to the group with 'admin' perm
// private share group owned repo
if (this.parent_group_id && this.is_staff) {
$.extend(options, {
'is_address_book_group_admin': true,
'parent_group_id': this.parent_group_id
});
}
}
new ShareView(options);