fix: only block endpoints if enabled in site config

This commit is contained in:
Jannat Patel
2026-01-19 19:03:51 +05:30
parent 9425f2aa0e
commit f297f2630b

View File

@@ -46,6 +46,9 @@ ALLOWED_PATHS = [
def authenticate():
if not frappe.conf.get("block_endpoints"):
return
if frappe.form_dict.cmd:
path = f"/api/method/{frappe.form_dict.cmd}"
else: