Files
lms/lms/www/dashboard/index.py
2022-09-05 13:32:51 +05:30

9 lines
321 B
Python

import frappe
from lms.lms.utils import has_course_instructor_role
def get_content(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()