mirror of https://github.com/jumpserver/jumpserver
[Update] 修改授权用户/用户组页面删除用户组失败的问题
parent
8a62488cb9
commit
2f7b169405
|
@ -218,7 +218,7 @@ function addGroups(groupsId) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function removeGroup(groupId) {
|
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);
|
theUrl = theUrl.replace("groupId", groupId);
|
||||||
var success = function(data) {
|
var success = function(data) {
|
||||||
location.reload();
|
location.reload();
|
||||||
|
|
|
@ -218,7 +218,7 @@ function addGroups(groupsId) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function removeGroup(groupId) {
|
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);
|
theUrl = theUrl.replace("groupId", groupId);
|
||||||
var success = function(data) {
|
var success = function(data) {
|
||||||
location.reload();
|
location.reload();
|
||||||
|
|
Loading…
Reference in New Issue