fix: 修复账号模版密码API查看权限问题

pull/9629/head
Bai 2023-02-20 10:56:50 +08:00 committed by Jiangjie.Bai
parent 2f1e60cf91
commit 0888fb2318
2 changed files with 3 additions and 3 deletions

View File

@ -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):

View File

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