fix: Add authorization checks on internal functions (#55709)

This commit is contained in:
Ankush Menat
2026-06-08 14:49:32 +05:30
committed by GitHub
parent 5eb9461cfd
commit ba936eefab
16 changed files with 20 additions and 38 deletions

View File

@@ -386,7 +386,7 @@ def get_lead_with_phone_number(number):
def add_lead_to_prospect(lead: str, prospect: str):
prospect = frappe.get_doc("Prospect", prospect)
prospect.append("leads", {"lead": lead})
prospect.save(ignore_permissions=True)
prospect.save()
carry_forward_communication_and_comments = frappe.db.get_single_value(
"CRM Settings", "carry_forward_communication_and_comments"