Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
GlugovGrGlib opened this issue Jul 3, 2024 · 0 comments
Labels
bug Report of or fix for something that isn't working as intended

Comments

@GlugovGrGlib
Copy link
Member

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 GlugovGrGlib added the bug Report of or fix for something that isn't working as intended label Jul 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Report of or fix for something that isn't working as intended
Projects
None yet
Development

No branches or pull requests

1 participant