浏览代码

[fixes] changes in permission validation message

version-14
Nabin Hait 12 年前
父节点
当前提交
a0eca348e2
共有 1 个文件被更改,包括 0 次插入2 次删除
  1. +0
    -2
      webnotes/__init__.py

+ 0
- 2
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")


正在加载...
取消
保存