fix: show first chapter and question form by default

This commit is contained in:
Jannat Patel
2022-09-15 22:52:17 +05:30
parent f3adbfef55
commit 47b9b1dcd6
11 changed files with 69 additions and 21 deletions
+1 -1
View File
@@ -24,7 +24,7 @@ def get_context(context):
context.lesson = get_current_lesson_details(lesson_number, context)
instructor = is_instructor(context.course.name)
context.show_lesson = context.membership or context.lesson.include_in_preview or instructor or has_course_moderator_role()
context.show_lesson = context.membership or (context.lesson and context.lesson.include_in_preview) or instructor or has_course_moderator_role()
if not context.lesson:
context.lesson = frappe._dict()