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

@@ -6,8 +6,8 @@ no_cache = 1
def get_context(context):
context.education_settings = frappe.get_single("Education Settings")
context.program = get_program(frappe.form_dict['name'])
context.is_enrolled = utils.get_enrollment_status(program)
context.program = get_program(frappe.form_dict['program'])
context.has_access = utils.allowed_program_access(frappe.form_dict['program'])
def get_program(program_name):
try: