diff --git a/lms/auth.py b/lms/auth.py index 6cc652c6..f745a080 100644 --- a/lms/auth.py +++ b/lms/auth.py @@ -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: