fix: 用户组删除用户权限问题

pull/12458/head
wangruidong 11 months ago committed by w940853815
parent 32255c6077
commit 653a6752b6

@ -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):

Loading…
Cancel
Save