diff --git a/erpnext/accounts/party.py b/erpnext/accounts/party.py index af6fac10fee9abece5c81bfb0431ffa570c81675..2a4e31b9d272ae6ececc23634c6b904503b4e3a2 100644 --- a/erpnext/accounts/party.py +++ b/erpnext/accounts/party.py @@ -878,6 +878,9 @@ def get_timeline_data(doctype, name, included_doctypes=None): data = list(communication_data) for doctype in included_doctypes: + if not frappe.has_permission(doctype, "read"): + continue + data.extend( frappe.get_list( doctype["name"],