fix: course and bath category filter issue

This commit is contained in:
Jannat Patel
2026-01-19 12:38:12 +05:30
parent c97a5e813c
commit 0883aedc1d
4 changed files with 22 additions and 29 deletions

View File

@@ -32,7 +32,7 @@ ALLOWED_PATHS = [
"/api/method/frappe.onboarding.get_onboarding_status",
"/api/method/frappe.utils.print_format.download_pdf",
"/api/method/frappe.desk.search.search_link",
"/api/method/frappe.core.doctype.communication.email.make_email",
"/api/method/frappe.core.doctype.communication.email.make",
]
@@ -53,7 +53,6 @@ def authenticate():
if path.startswith("/lms") or path.startswith("/api/method/lms."):
return
print(ALLOWED_PATHS)
if path in ALLOWED_PATHS:
return
frappe.throw(f"Access not allowed for this URL: {path}", frappe.PermissionError)