From 2b51d4f4d7ae86b9e5b9aceaba38e5dd5d8e30cd Mon Sep 17 00:00:00 2001 From: Akhil Narang Date: Tue, 10 Jun 2025 15:58:21 +0530 Subject: [PATCH] Revert "fix: permission error when permission docname is none" This reverts commit f1d0419fa819d2a2b18d88af797fb88c184c9e09. Signed-off-by: Akhil Narang --- frappe/permissions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frappe/permissions.py b/frappe/permissions.py index 5f8c14432e..0d5926c25b 100644 --- a/frappe/permissions.py +++ b/frappe/permissions.py @@ -361,7 +361,7 @@ def has_user_permission(doc, user=None, debug=False, *, ptype=None): # if allowed_docs is empty it states that there is no applicable permission under the current doctype # only check if allowed_docs is not empty - if allowed_docs and docname and str(docname) not in allowed_docs: + if allowed_docs and str(docname) not in allowed_docs: # no user permissions for this doc specified debug and _debug_log( "User doesn't have access to this document because of User Permissions, allowed documents: "