瀏覽代碼

[minor] better message on permission

version-14
Rushabh Mehta 7 年之前
父節點
當前提交
cd968348d7
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      frappe/client.py

+ 1
- 1
frappe/client.py 查看文件

@@ -57,7 +57,7 @@ def get_value(doctype, fieldname, filters=None, as_dict=True, debug=False):
:param filters: dict or string for identifying the record'''

if not frappe.has_permission(doctype):
frappe.throw(_("Not permitted"), frappe.PermissionError)
frappe.throw(_("No permission for {0}".format(doctype)), frappe.PermissionError)

try:
filters = json.loads(filters)


Loading…
取消
儲存