fix: add back accidentally removed logging
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
This commit is contained in:
parent
e1f7556687
commit
519a298db3
1 changed files with 3 additions and 0 deletions
|
|
@ -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.")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue