fix: add back accidentally removed logging

Signed-off-by: Akhil Narang <me@akhilnarang.dev>
This commit is contained in:
Akhil Narang 2025-06-16 16:26:37 +05:30
parent e1f7556687
commit 519a298db3
No known key found for this signature in database
GPG key ID: 9DCC61E211BF645F

View file

@ -385,6 +385,9 @@ def has_user_permission(doc, user=None, debug=False, *, ptype=None):
)
push_perm_check_log(_("Not allowed for {0}: {1}").format(_(doctype), docname), debug=debug)
return False
else:
debug and _debug_log(f"User Has access to {docname} via User Permissions.")
else:
debug and _debug_log(f"User Has access to {docname} via User Permissions.")