mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-09-05 17:30:30 +00:00
fix: 修复用户绑定角色重大bug
This commit is contained in:
@@ -49,6 +49,8 @@ class RolesSerializerMixin(serializers.Serializer):
|
||||
return fields
|
||||
|
||||
action = view.action or 'list'
|
||||
if action in ('partial_bulk_update', 'bulk_update', 'partial_update', 'update'):
|
||||
action = 'create'
|
||||
model_cls_field_mapper = {
|
||||
SystemRoleBinding: ['system_roles', 'system_roles_display'],
|
||||
OrgRoleBinding: ['org_roles', 'system_roles_display']
|
||||
|
Reference in New Issue
Block a user