fix(crm): add missing permission validation on get_contract_template (#58621)

This commit is contained in:
Diptanil Saha
2026-09-01 00:58:58 +05:30
committed by GitHub
parent 21a3b1c3dc
commit 120e62f208

View File

@@ -38,6 +38,7 @@ def get_contract_template(template_name: str, doc: str | dict | Document):
doc = frappe.parse_json(doc)
contract_template = frappe.get_doc("Contract Template", template_name)
contract_template.check_permission()
contract_terms = None
if contract_template.contract_terms: