fix: context for dashboard

This commit is contained in:
Jannat Patel
2022-09-05 14:53:13 +05:30
parent 8f86a8aba6
commit 3a08f57fb1

View File

@@ -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()