frontend-app-learning
frontend-app-learning copied to clipboard
[Bug] Students have access to course content even if the Entrance Exam wasn't finished
STR:
- Enable feature ENTRANCE_EXAMS
- Set Entrance exam for course in schedule and details
- As a student, enroll to the course
Actual Result
Students have access to the full course even before the Entrance Exam is finished
Expected Result
Students don't have access to course content before passing with necessary score for entrance exam
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