MDL-34054 quiz reports: missing context.
[moodle.git] / mod / quiz / report / attemptsreport_options.php
index cca3d30..ffd4287 100644 (file)
@@ -105,7 +105,7 @@ class mod_quiz_attempts_report_options {
         $this->cm     = $cm;
         $this->course = $course;
 
-        $this->usercanseegrades = quiz_report_should_show_grades($quiz);
+        $this->usercanseegrades = quiz_report_should_show_grades($quiz, context_module::instance($cm->id));
     }
 
     /**