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

Co-authored-by: Diptanil Saha <diptanil@frappe.io>
This commit is contained in:
mergify[bot]
2026-08-31 19:40:50 +00:00
committed by GitHub
parent f8c29274a5
commit 30f0cd9c95

View File

@@ -39,6 +39,7 @@ def get_contract_template(template_name, doc):
doc = json.loads(doc) doc = json.loads(doc)
contract_template = frappe.get_doc("Contract Template", template_name) contract_template = frappe.get_doc("Contract Template", template_name)
contract_template.check_permission()
contract_terms = None contract_terms = None
if contract_template.contract_terms: if contract_template.contract_terms: