mirror of
https://github.com/frappe/erpnext.git
synced 2026-07-02 21:26:55 +00:00
fix(lead): added missing read permission check on `get_lead_details` (backport #56272)
This commit is contained in:
@@ -448,6 +448,7 @@ def get_lead_details(lead, posting_date=None, company=None, doctype=None):
|
||||
out = frappe._dict()
|
||||
|
||||
lead_doc = frappe.get_doc("Lead", lead)
|
||||
lead_doc.check_permission()
|
||||
lead = lead_doc
|
||||
|
||||
out.update(
|
||||
|
||||
Reference in New Issue
Block a user