fix: allow backward seek but prevent forward seek

This commit is contained in:
Jannat Patel
2025-07-01 19:16:13 +05:30
parent e526a6fd64
commit b4cf290f4d
4 changed files with 37 additions and 6 deletions

View File

@@ -1320,6 +1320,7 @@ def get_lesson(course, chapter, lesson):
lesson_details.progress = progress
lesson_details.prev = neighbours["prev"]
lesson_details.membership = membership
lesson_details.icon = get_lesson_icon(lesson_details.body, lesson_details.content)
lesson_details.instructors = get_instructors("LMS Course", course)
lesson_details.course_title = course_info.title
lesson_details.paid_certificate = course_info.paid_certificate