Skip to content
Snippets Groups Projects
Commit b82bfbe8 authored by Matt Butcher's avatar Matt Butcher
Browse files

#572894 by mbutcher: Disallow anonymous users from resuming quizzes.

parent e67bcb6b
No related branches found
No related tags found
No related merge requests found
......@@ -1994,6 +1994,11 @@ function quiz_update_questions(&$quiz, $submitted_questions, $revision = FALSE)
* The result ID found for the current quiz.
*/
function _quiz_resume_existing_quiz($quiz, $uid, $rid) {
// Anonymous users cannot resume quizzes.
if ($uid == 0) {
return;
}
// Create question list.
$questions = quiz_build_question_list($quiz);
$already_answered = array();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment