feat: enabled per student access
This commit is contained in:
@@ -7,5 +7,7 @@ no_cache = 1
|
||||
def get_context(context):
|
||||
context.education_settings = frappe.get_single("Education Settings")
|
||||
course = frappe.get_doc('Course', frappe.form_dict['name'])
|
||||
context.program = frappe.form_dict['program']
|
||||
context.course = course
|
||||
context.topics = course.get_topics()
|
||||
context.topics = course.get_topics()
|
||||
context.has_access = utils.allowed_program_access(context.program)
|
||||
Reference in New Issue
Block a user