fix: 修复账号密钥查看rbac权限位

pull/9534/head
Bai 2023-02-14 11:29:04 +08:00 committed by Jiangjie.Bai
parent 1631f0fe3c
commit 80903d1218
1 changed files with 2 additions and 2 deletions

View File

@ -67,8 +67,8 @@ class AccountSecretsViewSet(RecordViewLogMixin, AccountViewSet):
http_method_names = ['get', 'options']
permission_classes = [RBACPermission, UserConfirmation.require(ConfirmType.MFA)]
rbac_perms = {
'list': 'assets.view_accountsecret',
'retrieve': 'assets.view_accountsecret',
'list': 'accounts.view_accountsecret',
'retrieve': 'accounts.view_accountsecret',
}