mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
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:
parent
fb75b07c9e
commit
307be23b83
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user