mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-08-31 06:46:24 +00:00
fix: 用户组删除用户权限问题
This commit is contained in:
@@ -18,7 +18,7 @@ class UserUserGroupRelationViewSet(JMSBulkRelationModelViewSet):
|
|||||||
m2m_field = User.groups.field
|
m2m_field = User.groups.field
|
||||||
rbac_perms = {
|
rbac_perms = {
|
||||||
'create': 'users.change_usergroup',
|
'create': 'users.change_usergroup',
|
||||||
'destroy': 'users.change_usergroup'
|
'bulk_destroy': 'users.change_usergroup',
|
||||||
}
|
}
|
||||||
|
|
||||||
def get_queryset(self):
|
def get_queryset(self):
|
||||||
|
Reference in New Issue
Block a user