Browse Source

[fixes] changes in permission validation message

version-14
Nabin Hait 12 years ago
parent
commit
a0eca348e2
1 changed files with 0 additions and 2 deletions
  1. +0
    -2
      webnotes/__init__.py

+ 0
- 2
webnotes/__init__.py View File

@@ -275,8 +275,6 @@ def has_permission(doctype, ptype="read", doc=None):


# no valid permission found # no valid permission found
if match_failed: if match_failed:
from utils import cstr
key = match_failed.keys()[0]
msg = _("Not allowed for: ") msg = _("Not allowed for: ")
for key in match_failed: for key in match_failed:
msg += "\n" + key + " = " + (match_failed[key] or "None") msg += "\n" + key + " = " + (match_failed[key] or "None")


Loading…
Cancel
Save