mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-05 13:24:47 +00:00
feat: ignore permission when deleting linked emails (#20753)
This commit is contained in:
@@ -113,4 +113,4 @@ def delete_communications(doctype, company_name, company_fieldname):
|
|||||||
communications = frappe.get_all("Communication", filters={"reference_doctype":doctype,"reference_name":["in",reference_doctype_names]})
|
communications = frappe.get_all("Communication", filters={"reference_doctype":doctype,"reference_name":["in",reference_doctype_names]})
|
||||||
communication_names = [c.name for c in communications]
|
communication_names = [c.name for c in communications]
|
||||||
|
|
||||||
frappe.delete_doc("Communication",communication_names)
|
frappe.delete_doc("Communication", communication_names, ignore_permissions=True)
|
||||||
|
|||||||
Reference in New Issue
Block a user