fix: allow guests to search

This commit is contained in:
Jannat Patel
2021-11-18 15:44:19 +05:30
parent e5deb2ddd7
commit 36150d5b09

View File

@@ -363,7 +363,7 @@ def reindex_exercises(doc):
course.reindex_exercises()
frappe.msgprint("All exercises in this course have been re-indexed.")
@frappe.whitelist()
@frappe.whitelist(allow_guest=True)
def search_course(text):
search_courses = []
courses = frappe.get_all("LMS Course",