feat: enabled per student access

This commit is contained in:
Shivam Mishra
2019-05-30 16:37:15 +05:30
parent 24bd07d000
commit 4991fca5cc
3 changed files with 36 additions and 8 deletions

View File

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