]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-8299 - Wrong capability on review.php. Merged from MOODLE_18_STABLE.
authortjhunt <tjhunt>
Tue, 20 Mar 2007 22:45:19 +0000 (22:45 +0000)
committertjhunt <tjhunt>
Tue, 20 Mar 2007 22:45:19 +0000 (22:45 +0000)
mod/quiz/review.php

index 69e824f61c67152e9e527c330e0a473256c23f36..653a447d130524c789c9f3cea77b26691f985c0c 100644 (file)
@@ -46,8 +46,7 @@
     $options = quiz_get_reviewoptions($quiz, $attempt, $context);
     $popup = $isteacher ? 0 : $quiz->popup; // Controls whether this is shown in a javascript-protected window.
 
-    // this capability is not correct, need to find the right one
-    if (!has_capability('mod/quiz:manage', $context)) {
+    if (!has_capability('mod/quiz:viewreports', $context)) {
         if (!$attempt->timefinish) {
             redirect('attempt.php?q='.$quiz->id);
         }