frontend-app-learning icon indicating copy to clipboard operation
frontend-app-learning copied to clipboard

[Bug] Students have access to course content even if the Entrance Exam wasn't finished

Open GlugovGrGlib opened this issue 7 months ago • 4 comments

STR:

  1. Enable feature ENTRANCE_EXAMS
  2. Set Entrance exam for course in schedule and details image
  3. As a student, enroll to the course

Actual Result

Students have access to the full course even before the Entrance Exam is finished image

Expected Result

Students don't have access to course content before passing with necessary score for entrance exam image

Notes:

Result of investigation:

The problem is Learning MFE used sections from course_outline. This data was fetched from /edx-platform/openedx/core/djangoapps/content/learning_sequences/api/outlines.py, get_user_course_outline_details. This function doesn`t check if is there an entrance exam and if the user passes the exam.

An example of how to check if the chapter is an entrance exam and did user passed it can be found at edx-platform/lms/djangoapps/courseware/views/index.py, _add_entrance_exam_to_context function

GlugovGrGlib avatar Jul 03 '24 14:07 GlugovGrGlib