Permalink
Browse files

quiz recent activity: MDL-22410 permission check was wrong.

  • Loading branch information...
1 parent 0de2d1f commit 2ccb0b9fd242a10d64ac06683b5f7530c65a93ea @timhunt timhunt committed May 10, 2010
Showing with 1 addition and 2 deletions.
  1. +1 −2 mod/quiz/lib.php
View
@@ -600,10 +600,9 @@ function quiz_get_recent_mod_activity(&$activities, &$index, $timestart,
}
$context = get_context_instance(CONTEXT_MODULE, $cm->id);
- $grader = has_capability('moodle/grade:viewall', $context);
$accessallgroups = has_capability('moodle/site:accessallgroups', $context);
$viewfullnames = has_capability('moodle/site:viewfullnames', $context);
- $grader = has_capability('mod/quiz:grade', $context);
+ $grader = has_capability('mod/quiz:viewreports', $context);
$groupmode = groups_get_activity_groupmode($cm, $course);
if (is_null($modinfo->groups)) {

0 comments on commit 2ccb0b9

Please sign in to comment.