fixed incorrect context in user Outline report

This commit is contained in:
skodak
2006-10-22 20:02:00 +00:00
parent 0d2fdd9cd9
commit b52e9a106c
+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!