fixed incorrect context in user Outline report; mergedf rom MOODLE_17_STABLE

This commit is contained in:
skodak
2006-10-22 20:03:01 +00:00
parent e2a305ff13
commit 15850dcb29
+1 -1
View File
@@ -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!