Permalink
Browse files

MDL-12889 - bad capability check [thanks Tim!] in assignment recent a…

…ctivity report

merged from MOODLE_19_STABLE
  • Loading branch information...
1 parent 897e6a3 commit a789bed6ef66db4b8ddf6a9a0bc8fb33ec36f827 arborrow committed Jan 9, 2008
Showing with 1 addition and 1 deletion.
  1. +1 −1 mod/assignment/lib.php
View
2 mod/assignment/lib.php
@@ -2125,7 +2125,7 @@ function assignment_print_recent_mod_activity($activity, $course, $detail=false)
}
- if (has_capability('moodle/course:viewrecent', get_context_instance(CONTEXT_COURSE, $course))) {
+ if (has_capability('moodle/grade:viewall', get_context_instance(CONTEXT_COURSE, $course))) {
$grades = "(" . $activity->content->grade . " / " . $activity->content->maxgrade . ") ";
$assignment->id = $activity->instance;

0 comments on commit a789bed

Please sign in to comment.