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

rm set repo user/group perm

This commit is contained in:
lian
2016-08-30 11:15:22 +08:00
committed by lian
parent 18c60fd306
commit a862fad836
12 changed files with 687 additions and 1044 deletions

View File

@@ -56,7 +56,7 @@ define([
repo_id: this.repo_id
}) + '?p=' + encodeURIComponent(this.path);
if (item_data.for_user) {
url += '&share_type=user&username=' + encodeURIComponent(item_data.user);
url += '&share_type=user&username=' + encodeURIComponent(item_data.user_email);
} else {
url += '&share_type=group&group_id=' + encodeURIComponent(item_data.group_id);
}
@@ -70,7 +70,7 @@ define([
'permission': perm
},
success: function () {
item_data.perm = perm;
item_data.permission = perm;
_this.render();
},
error: function(xhr) {
@@ -97,7 +97,7 @@ define([
repo_id: this.repo_id
}) + '?p=' + encodeURIComponent(this.path);
if (item_data.for_user) {
url += '&share_type=user&username=' + encodeURIComponent(item_data.user);
url += '&share_type=user&username=' + encodeURIComponent(item_data.user_email);
} else {
url += '&share_type=group&group_id=' + encodeURIComponent(item_data.group_id);
}