fix: check perm for account (#55479)

This commit is contained in:
Ankush Menat
2026-06-01 12:34:38 +05:30
committed by GitHub
parent 3deab36d2e
commit dd1d2925d5

View File

@@ -530,6 +530,7 @@ def update_account_number(
):
_ensure_idle_system()
account = frappe.get_cached_doc("Account", name)
account.check_permission("write")
if not account:
return