feat: reviews

This commit is contained in:
pateljannat
2021-06-28 20:27:17 +05:30
parent 621d01d502
commit 0c64d46e99
22 changed files with 217 additions and 5 deletions

View File

@@ -20,5 +20,5 @@ def get_context(context):
context.course.query_parameter = "?batch=" + membership.batch if membership and membership.batch else ""
context.membership = membership
if not course.is_mentor(frappe.session.user) and membership:
frappe.local.flags.redirect_location = f"/courses/{course.name}/learn"
raise frappe.Redirect
""" frappe.local.flags.redirect_location = f"/courses/{course.name}/learn"
raise frappe.Redirect """