From 121609d80a5b4c79fcbfb1a39968911642f2b927 Mon Sep 17 00:00:00 2001 From: tjhunt Date: Tue, 20 Mar 2007 22:45:19 +0000 Subject: [PATCH] MDL-8299 - Wrong capability on review.php. Merged from MOODLE_18_STABLE. --- mod/quiz/review.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mod/quiz/review.php b/mod/quiz/review.php index 69e824f61c..653a447d13 100644 --- a/mod/quiz/review.php +++ b/mod/quiz/review.php @@ -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); } -- 2.39.5