Skip to content

Commit

Permalink
MDL-20636 quiz let users with capability mod/quiz:grade, but not mod/…
Browse files Browse the repository at this point in the history
…quiz:viewreports see the manual grading report in the navigation. OU bug moodle#412.
  • Loading branch information
timhunt committed May 20, 2011
1 parent 667cdde commit 449bfe9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mod/quiz/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -1519,7 +1519,7 @@ function quiz_extend_navigation($quiznode, $course, $module, $cm) {
null, null, new pix_icon('i/info', ''));
}

if (has_capability('mod/quiz:viewreports', $context)) {
if (has_any_capability(array('mod/quiz:viewreports', 'mod/quiz:grade'), $context)) {
require_once($CFG->dirroot.'/mod/quiz/report/reportlib.php');
$reportlist = quiz_report_list($context);

Expand Down

0 comments on commit 449bfe9

Please sign in to comment.