Merge pull request #7541 from frappe/fix-has-perm
fix: has permission decorator
This commit is contained in:
commit
9883b1f751
1 changed files with 1 additions and 1 deletions
|
|
@ -30,7 +30,7 @@ def print_has_permission_check_logs(func):
|
|||
# print only if access denied
|
||||
# and if user is checking his own permission
|
||||
if not result and self_perm_check and raise_exception:
|
||||
msgprint(('<br>').join(frappe.flags.get('has_permission_check_logs')))
|
||||
msgprint(('<br>').join(frappe.flags.get('has_permission_check_logs', [])))
|
||||
frappe.flags.pop('has_permission_check_logs', None)
|
||||
return result
|
||||
return inner
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue