Im trying to do add a rule that limit the studet to only have one quiz open at the time. I currently have this code:
It's surely bloquing the student to open the second quiz but when I close the other quiz and go back to try open the quiz that was bloqued it remains bloqued eventhough the information on the mdl_quiz_attempts table has already been updated. Anyone know why this could be happening? I seems to my that in the prevent new attempt function is not running each time I try to access the quiz.