From: skodak Date: Sun, 22 Oct 2006 20:03:01 +0000 (+0000) Subject: fixed incorrect context in user Outline report; mergedf rom MOODLE_17_STABLE X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=15850dcb29b5a325ca57ddf3a5b45743e948dbd3;p=moodle.git fixed incorrect context in user Outline report; mergedf rom MOODLE_17_STABLE --- diff --git a/course/user.php b/course/user.php index c8267d04b7..218a780e40 100644 --- a/course/user.php +++ b/course/user.php @@ -164,7 +164,7 @@ if (isset($sections[$i])) { // should always be true $section = $sections[$i]; - $showsection = (has_capability('moodle/course:viewhiddensections', $context) or $section->visible or !$course->hiddensections); + $showsection = (has_capability('moodle/course:viewhiddensections', $coursecontext) or $section->visible or !$course->hiddensections); if ($showsection) { // prevent hidden sections in user activity. Thanks to Geoff Wilbert!