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:
Dan Marsden 2016-03-21 15:30:40 +13:00 committed by Cameron Ball
parent fb75b07c9e
commit 307be23b83

View File

@ -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;