mirror of https://github.com/jumpserver/jumpserver
fix: 修复账号模版密码API查看权限问题
parent
2f1e60cf91
commit
0888fb2318
|
@ -79,7 +79,7 @@ class AccountHistoriesSecretAPI(RecordViewLogMixin, ListAPIView):
|
||||||
http_method_names = ['get', 'options']
|
http_method_names = ['get', 'options']
|
||||||
permission_classes = [RBACPermission, UserConfirmation.require(ConfirmType.MFA)]
|
permission_classes = [RBACPermission, UserConfirmation.require(ConfirmType.MFA)]
|
||||||
rbac_perms = {
|
rbac_perms = {
|
||||||
'list': 'assets.view_accountsecret',
|
'list': 'accounts.view_accountsecret',
|
||||||
}
|
}
|
||||||
|
|
||||||
def get_queryset(self):
|
def get_queryset(self):
|
||||||
|
|
|
@ -23,6 +23,6 @@ class AccountTemplateSecretsViewSet(RecordViewLogMixin, AccountTemplateViewSet):
|
||||||
http_method_names = ['get', 'options']
|
http_method_names = ['get', 'options']
|
||||||
permission_classes = [RBACPermission, UserConfirmation.require(ConfirmType.MFA)]
|
permission_classes = [RBACPermission, UserConfirmation.require(ConfirmType.MFA)]
|
||||||
rbac_perms = {
|
rbac_perms = {
|
||||||
'list': 'assets.view_accounttemplatesecret',
|
'list': 'accounts.view_accounttemplatesecret',
|
||||||
'retrieve': 'assets.view_accounttemplatesecret',
|
'retrieve': 'accounts.view_accounttemplatesecret',
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue