perf: 修改用户组添加全部用户api的权限位 (#10683)

Co-authored-by: feng <1304903146@qq.com>
pull/10682/head^2
fit2bot 2023-06-12 18:16:09 +08:00 committed by GitHub
parent 86c81c42de
commit d59a293bb9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@ class UserGroupViewSet(OrgBulkModelViewSet):
serializer_class = UserGroupSerializer
ordering = ('name',)
rbac_perms = (
("add_all_users", "users.change_usergroup"),
("add_all_users", "users.add_usergroup"),
)
@action(methods=['post'], detail=True, url_path='add-all-users')