feat: ignore permission when deleting linked emails (#20751)

* feat: ignore permission when deleting linked emails

* fix: uncommented important snippet
This commit is contained in:
Shivam Mishra 2020-02-27 19:07:58 +05:30 committed by GitHub
parent fb35a54bee
commit d20e36f3fd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -112,4 +112,4 @@ def delete_communications(doctype, company_name, company_fieldname):
communications = frappe.get_all("Communication", filters={"reference_doctype":doctype,"reference_name":["in", reference_doc_names]}) communications = frappe.get_all("Communication", filters={"reference_doctype":doctype,"reference_name":["in", reference_doc_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)