mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
MDL-12889 - bad capability check [thanks Tim!] in assignment recent activity report
merged from MOODLE_19_STABLE
This commit is contained in:
parent
e0bd367d01
commit
4de1ef8cc2
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user