]> git.mjollnir.org Git - moodle.git/commitdiff
fixed incorrect context in user Outline report; mergedf rom MOODLE_17_STABLE
authorskodak <skodak>
Sun, 22 Oct 2006 20:03:01 +0000 (20:03 +0000)
committerskodak <skodak>
Sun, 22 Oct 2006 20:03:01 +0000 (20:03 +0000)
course/user.php

index c8267d04b712d987e8f27e60345eaa9634822fda..218a780e4068a61d61315e7633e2f548e910a360 100644 (file)
                 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!