MDL-12889 - bad capability check [thanks Tim!] in assignment recent activity report

merged from MOODLE_19_STABLE
This commit is contained in:
poltawski 2008-01-09 12:57:44 +00:00
parent e0bd367d01
commit 4de1ef8cc2

View File

@ -2480,7 +2480,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;