mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-07-30 22:15:02 +00:00
[Update] 修改授权用户/用户组页面删除用户组失败的问题
This commit is contained in:
parent
8a62488cb9
commit
2f7b169405
@ -218,7 +218,7 @@ function addGroups(groupsId) {
|
||||
}
|
||||
|
||||
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();
|
||||
|
@ -218,7 +218,7 @@ function addGroups(groupsId) {
|
||||
}
|
||||
|
||||
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();
|
||||
|
Loading…
Reference in New Issue
Block a user