mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-09-12 13:31:56 +00:00
fix: account_change_pwd
This commit is contained in:
@@ -65,7 +65,7 @@ class AccountViewSet(OrgBulkModelViewSet):
|
|||||||
}
|
}
|
||||||
rbac_perms = {
|
rbac_perms = {
|
||||||
'verify_account': 'assets.test_authbook',
|
'verify_account': 'assets.test_authbook',
|
||||||
'PATCH': 'assets.change_assetaccountsecret'
|
'partial_update': 'assets.change_assetaccountsecret',
|
||||||
}
|
}
|
||||||
|
|
||||||
def get_queryset(self):
|
def get_queryset(self):
|
||||||
|
@@ -109,7 +109,6 @@ class RBACPermission(permissions.DjangoModelPermissions):
|
|||||||
if not action:
|
if not action:
|
||||||
action = request.method
|
action = request.method
|
||||||
perms = self._get_action_perms(action, model_cls, view)
|
perms = self._get_action_perms(action, model_cls, view)
|
||||||
print(model_cls, perms, action)
|
|
||||||
return perms
|
return perms
|
||||||
|
|
||||||
def has_permission(self, request, view):
|
def has_permission(self, request, view):
|
||||||
|
Reference in New Issue
Block a user