diff --git a/frappe/utils/goal.py b/frappe/utils/goal.py index e7cffc3ddf..4c63eb9fc4 100644 --- a/frappe/utils/goal.py +++ b/frappe/utils/goal.py @@ -57,6 +57,10 @@ def get_monthly_goal_graph_data(title, doctype, docname, goal_value_field, goal_ from frappe.utils.formatters import format_value import json + # should have atleast read perm + if not frappe.has_permission(goal_doctype): + return None + meta = frappe.get_meta(doctype) doc = frappe.get_doc(doctype, docname)