Browse Source

[minor] better message on permission

version-14
Rushabh Mehta 7 years ago
parent
commit
cd968348d7
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      frappe/client.py

+ 1
- 1
frappe/client.py View File

@@ -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''' :param filters: dict or string for identifying the record'''


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


try: try:
filters = json.loads(filters) filters = json.loads(filters)


Loading…
Cancel
Save