mirror of
https://github.com/frappe/erpnext.git
synced 2026-10-29 22:57:42 +00:00
fix(setup): check user write access without printing permission logs
(cherry picked from commit f1c1a811f1)
This commit is contained in:
@@ -216,7 +216,7 @@ class Employee(NestedSet):
|
||||
|
||||
def can_reenable_user(self, user):
|
||||
"""Allow if the session user can edit the User, or if an Employee status change disabled it last."""
|
||||
if user.has_permission("write"):
|
||||
if frappe.has_permission("User", "write", user):
|
||||
return True
|
||||
|
||||
last_change = frappe.get_all(
|
||||
|
||||
Reference in New Issue
Block a user