Skip to content

Commit

Permalink
[Update] 修改授权用户/用户组页面删除用户组失败的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
BaiJiangJie committed May 18, 2020
1 parent 8a62488 commit 2f7b169
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/perms/templates/perms/asset_permission_user.html
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@
}

function removeGroup(groupId) {
var theUrl = "{% url 'api-perms:asset-permissions-user-groups-relation-list' %}?assetpermission={{ object.id }}";
var theUrl = "{% url 'api-perms:asset-permissions-user-groups-relation-list' %}?assetpermission={{ object.id }}&usergroup=groupId";
theUrl = theUrl.replace("groupId", groupId);
var success = function(data) {
location.reload();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@
}

function removeGroup(groupId) {
var theUrl = "{% url 'api-perms:database-app-permissions-user-groups-relation-list' %}?databaseapppermission={{ object.id }}";
var theUrl = "{% url 'api-perms:database-app-permissions-user-groups-relation-list' %}?databaseapppermission={{ object.id }}&usergroup=groupId";
theUrl = theUrl.replace("groupId", groupId);
var success = function(data) {
location.reload();
Expand Down

0 comments on commit 2f7b169

Please sign in to comment.