MDL-53500 report_outline: Allow parent role to view all activities.
Parents are not enrolled in the course, use $user to generate modinfo for uservisible checks.
This commit is contained in:
committed by
Cameron Ball
parent
1912e615f7
commit
8f7dc60ad2
@@ -99,7 +99,7 @@ if ($courseid != SITEID) {
|
||||
), 2);
|
||||
}
|
||||
|
||||
$modinfo = get_fast_modinfo($course);
|
||||
$modinfo = get_fast_modinfo($course, $user->id);
|
||||
$sections = $modinfo->get_section_info_all();
|
||||
$itemsprinted = false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user