fix: Not permitted in title case

This commit is contained in:
Deepesh Garg 2020-09-07 13:17:24 +05:30
parent 8413f920de
commit 99bd9fc3cf

View file

@ -463,7 +463,7 @@ def add_total_row(result, columns, meta = None):
def get_data_for_custom_field(doctype, field):
if not frappe.has_permission(doctype, "read"):
frappe.throw(_("Not permitted"), frappe.PermissionError)
frappe.throw(_("Not Permitted"), frappe.PermissionError)
value_map = frappe._dict(frappe.get_all(doctype,
fields=["name", field],