Merge pull request #149 from fossunited/disable-exercises-for-non-members

feat: include membership info in page context
This commit is contained in:
Jannat Patel
2021-07-12 10:59:28 +05:30
committed by GitHub

View File

@@ -38,7 +38,8 @@ def get_context(context):
context.page_context = {
"course": context.course.name,
"batch": context.get("batch") and context.batch.name,
"lesson": context.lesson.name
"lesson": context.lesson.name,
"is_member": context.membership is not None
}
def get_chapter_title(course_name, lesson_number):