From dd1d2925d56ffb107c49efcd8e20e3176209b322 Mon Sep 17 00:00:00 2001 From: Ankush Menat Date: Mon, 1 Jun 2026 12:34:38 +0530 Subject: [PATCH] fix: check perm for account (#55479) --- erpnext/accounts/doctype/account/account.py | 1 + 1 file changed, 1 insertion(+) diff --git a/erpnext/accounts/doctype/account/account.py b/erpnext/accounts/doctype/account/account.py index 027bae49e56..491b8c2c456 100644 --- a/erpnext/accounts/doctype/account/account.py +++ b/erpnext/accounts/doctype/account/account.py @@ -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