From d59a293bb9ad5aef3bdf3a3b17a4a288373a4521 Mon Sep 17 00:00:00 2001 From: fit2bot <68588906+fit2bot@users.noreply.github.com> Date: Mon, 12 Jun 2023 18:16:09 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E4=BF=AE=E6=94=B9=E7=94=A8=E6=88=B7?= =?UTF-8?q?=E7=BB=84=E6=B7=BB=E5=8A=A0=E5=85=A8=E9=83=A8=E7=94=A8=E6=88=B7?= =?UTF-8?q?api=E7=9A=84=E6=9D=83=E9=99=90=E4=BD=8D=20(#10683)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: feng <1304903146@qq.com> --- apps/users/api/group.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/users/api/group.py b/apps/users/api/group.py index a87f964e9..6cccfb4a2 100644 --- a/apps/users/api/group.py +++ b/apps/users/api/group.py @@ -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')