fix: context for dashboard
This commit is contained in:
@@ -2,7 +2,7 @@ import frappe
|
||||
from lms.lms.utils import has_course_instructor_role
|
||||
|
||||
|
||||
def get_content(context):
|
||||
def get_context(context):
|
||||
context.no_cache = 1
|
||||
portal_course_creation = frappe.db.get_single_value("LMS Settings", "portal_course_creation")
|
||||
context.show_creators_section = portal_course_creation == "Anyone" or has_course_instructor_role()
|
||||
|
||||
Reference in New Issue
Block a user