mirror of https://github.com/jumpserver/jumpserver
fix: 【用户管理】-创建用户组-可将系统审计员加入到用户组 #579
parent
89d8efe0f1
commit
c3e2e536e0
|
@ -53,3 +53,7 @@ class UserGroupSerializer(BulkOrgResourceModelSerializer):
|
|||
Prefetch('users', queryset=User.objects.only('id'))
|
||||
).annotate(users_amount=Count('users'))
|
||||
return queryset
|
||||
|
||||
def validate_users(self, users):
|
||||
users = [user for user in users if user.role != User.ROLE.AUDITOR]
|
||||
return users
|
||||
|
|
Loading…
Reference in New Issue