From 0888fb23180aba906036545eba24f7e9980ee186 Mon Sep 17 00:00:00 2001 From: Bai Date: Mon, 20 Feb 2023 10:56:50 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E8=B4=A6=E5=8F=B7?= =?UTF-8?q?=E6=A8=A1=E7=89=88=E5=AF=86=E7=A0=81API=E6=9F=A5=E7=9C=8B?= =?UTF-8?q?=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/accounts/api/account/account.py | 2 +- apps/accounts/api/account/template.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/accounts/api/account/account.py b/apps/accounts/api/account/account.py index ad9c372c1..3d4bcebd5 100644 --- a/apps/accounts/api/account/account.py +++ b/apps/accounts/api/account/account.py @@ -79,7 +79,7 @@ class AccountHistoriesSecretAPI(RecordViewLogMixin, ListAPIView): http_method_names = ['get', 'options'] permission_classes = [RBACPermission, UserConfirmation.require(ConfirmType.MFA)] rbac_perms = { - 'list': 'assets.view_accountsecret', + 'list': 'accounts.view_accountsecret', } def get_queryset(self): diff --git a/apps/accounts/api/account/template.py b/apps/accounts/api/account/template.py index cee8bac91..de4c4991e 100644 --- a/apps/accounts/api/account/template.py +++ b/apps/accounts/api/account/template.py @@ -23,6 +23,6 @@ class AccountTemplateSecretsViewSet(RecordViewLogMixin, AccountTemplateViewSet): http_method_names = ['get', 'options'] permission_classes = [RBACPermission, UserConfirmation.require(ConfirmType.MFA)] rbac_perms = { - 'list': 'assets.view_accounttemplatesecret', - 'retrieve': 'assets.view_accounttemplatesecret', + 'list': 'accounts.view_accounttemplatesecret', + 'retrieve': 'accounts.view_accounttemplatesecret', }