From e08db7423fe20aea473b4cbfec7ea245454ca90b Mon Sep 17 00:00:00 2001 From: feng626 <1304903146@qq.com> Date: Tue, 22 Feb 2022 15:37:56 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E8=B5=84=E4=BA=A7?= =?UTF-8?q?=E8=B4=A6=E5=8F=B7=E6=B5=8B=E8=AF=95=E5=8F=AF=E8=BF=9E=E6=8E=A5?= =?UTF-8?q?=E6=80=A7=E6=9D=83=E9=99=90=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/assets/api/accounts.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/assets/api/accounts.py b/apps/assets/api/accounts.py index 1db1bb090..04cfb5d29 100644 --- a/apps/assets/api/accounts.py +++ b/apps/assets/api/accounts.py @@ -61,6 +61,9 @@ class AccountViewSet(OrgBulkModelViewSet): 'default': serializers.AccountSerializer, 'verify_account': serializers.AssetTaskSerializer } + rbac_perms = { + 'verify_account': 'assets.add_authbook' + } def get_queryset(self): queryset = AuthBook.get_queryset()