mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-03 04:09:11 +00:00
fix: check perm for account (#55479)
This commit is contained in:
@@ -530,6 +530,7 @@ def update_account_number(
|
|||||||
):
|
):
|
||||||
_ensure_idle_system()
|
_ensure_idle_system()
|
||||||
account = frappe.get_cached_doc("Account", name)
|
account = frappe.get_cached_doc("Account", name)
|
||||||
|
account.check_permission("write")
|
||||||
if not account:
|
if not account:
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user