From 15850dcb29b5a325ca57ddf3a5b45743e948dbd3 Mon Sep 17 00:00:00 2001 From: skodak Date: Sun, 22 Oct 2006 20:03:01 +0000 Subject: [PATCH] fixed incorrect context in user Outline report; mergedf rom MOODLE_17_STABLE --- course/user.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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! -- 2.39.5