mirror of https://github.com/jumpserver/jumpserver
fix: account_change_pwd
parent
dfe5e2bce3
commit
2587c8693e
|
@ -65,7 +65,7 @@ class AccountViewSet(OrgBulkModelViewSet):
|
|||
}
|
||||
rbac_perms = {
|
||||
'verify_account': 'assets.test_authbook',
|
||||
'PATCH': 'assets.change_assetaccountsecret'
|
||||
'partial_update': 'assets.change_assetaccountsecret',
|
||||
}
|
||||
|
||||
def get_queryset(self):
|
||||
|
|
|
@ -109,7 +109,6 @@ class RBACPermission(permissions.DjangoModelPermissions):
|
|||
if not action:
|
||||
action = request.method
|
||||
perms = self._get_action_perms(action, model_cls, view)
|
||||
print(model_cls, perms, action)
|
||||
return perms
|
||||
|
||||
def has_permission(self, request, view):
|
||||
|
|
Loading…
Reference in New Issue