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

sysadmin can share repo with admin permission

This commit is contained in:
zming
2018-01-29 13:07:08 +08:00
parent f797d2d523
commit 5f9033b5ff
7 changed files with 439 additions and 66 deletions

View File

@@ -18,7 +18,7 @@ define([
},
render: function () {
this.$el.html(this.template(this.item_data));
this.$el.html(this.template($.extend({}, this.item_data, {is_pro: app.pageOptions.is_pro})));
return this;
},
@@ -77,6 +77,7 @@ define([
data: data,
success: function (data) {
item_data.permission = data.permission;
item_data.is_admin = data.is_admin;
_this.render();
},
error: function(xhr) {