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

Co-authored-by: feng <1304903146@qq.com>
This commit is contained in:
fit2bot
2023-06-12 18:16:09 +08:00
committed by GitHub
parent 86c81c42de
commit d59a293bb9

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')