From 726474db94907a4866dff7592aefa3da34322dcd Mon Sep 17 00:00:00 2001 From: Ankush Menat Date: Fri, 13 Jun 2025 15:42:24 +0530 Subject: [PATCH] fix: skip strict perm while writing on local document too (#32927) It's harmless: https://github.com/frappe/frappe/pull/32798#issuecomment-2969391481 --- frappe/permissions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frappe/permissions.py b/frappe/permissions.py index f720e9cc7e..5f8c14432e 100644 --- a/frappe/permissions.py +++ b/frappe/permissions.py @@ -347,7 +347,7 @@ def has_user_permission(doc, user=None, debug=False, *, ptype=None): if ( apply_strict_user_permissions and doc.get("__islocal") - and ptype == "read" + and ptype in ("read", "write") and (not docname or (docname and not frappe.db.exists(doctype, docname, cache=True))) ): apply_strict_user_permissions = False