From cc0ea13ec515a5c9614fa6aee33863447d5e4d16 Mon Sep 17 00:00:00 2001 From: Mangesh-Khairnar Date: Thu, 23 May 2019 13:04:59 +0530 Subject: [PATCH] fix: has permission decorator --- frappe/permissions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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