From a0eca348e28b27dba2fe966d1621549cdbe488c6 Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Wed, 10 Apr 2013 18:30:31 +0530 Subject: [PATCH] [fixes] changes in permission validation message --- webnotes/__init__.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/webnotes/__init__.py b/webnotes/__init__.py index fb41c77872..484c29e8b8 100644 --- a/webnotes/__init__.py +++ b/webnotes/__init__.py @@ -275,8 +275,6 @@ def has_permission(doctype, ptype="read", doc=None): # no valid permission found if match_failed: - from utils import cstr - key = match_failed.keys()[0] msg = _("Not allowed for: ") for key in match_failed: msg += "\n" + key + " = " + (match_failed[key] or "None")