Skip to content

Commit

Permalink
MDL-53500 report_outline: Allow parent role to view all activities.
Browse files Browse the repository at this point in the history
Parents are not enrolled in the course, use $user to generate modinfo
for uservisible checks.
  • Loading branch information
danmarsden authored and cameorn1730 committed Mar 31, 2016
1 parent a30a81e commit 3789c23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion report/outline/user.php
Expand Up @@ -99,7 +99,7 @@
), 2);
}

$modinfo = get_fast_modinfo($course);
$modinfo = get_fast_modinfo($course, $user->id);
$sections = $modinfo->get_section_info_all();
$itemsprinted = false;

Expand Down

0 comments on commit 3789c23

Please sign in to comment.