fix(setup): check user write access without printing permission logs

(cherry picked from commit f1c1a811f1)
This commit is contained in:
Mihir Kandoi
2026-10-28 07:53:22 +00:00
committed by Mergify
parent 8a6d12c403
commit e1830e19b1
+1 -1
View File
@@ -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(