diff --git a/frappe/permissions.py b/frappe/permissions.py index e5aa31d139..27eeb9be28 100644 --- a/frappe/permissions.py +++ b/frappe/permissions.py @@ -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(('
').join(frappe.flags.get('has_permission_check_logs'))) + msgprint(('
').join(frappe.flags.get('has_permission_check_logs', []))) frappe.flags.pop('has_permission_check_logs', None) return result return inner