Details
Description
General description:
Setting up a quiz such that the (review options) 'responses' option is not selected for one or more of the quiz phases prevents the review from opening for all existing attempts at the corresponding phase.
Steps in a standard quiz:
1. As a student attempt the quiz and submit.
2. As a teacher open the quiz settings and clear the 'responses' options in 'Later, while the quiz is still open'.
3. As the student go to the quiz and click on the attempt link (note: if the 'responses' option is cleared in all quiz phases the link to the attempt review will not appear)
4. Message: You are not allowed to review this quiz
The behaviour that if you are not allowed to review responses, you are not allowed to review anything, is correct. So review.php is doing the right thing.
There is a minor bug in view.php that the attempt number should not be displayed as a link in this case. I will correct that.