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:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user