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', }