]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-12875 - Hidden courses not in category list not visible to teachers on those...
authortjhunt <tjhunt>
Tue, 8 Jan 2008 15:17:02 +0000 (15:17 +0000)
committertjhunt <tjhunt>
Tue, 8 Jan 2008 15:17:02 +0000 (15:17 +0000)
course/lib.php

index b269d912b5a2f54221235afc50b8a4dc0eb43408..f9c0f6d2db0e4fc440ca9ace9723b30c03b7614e 100644 (file)
@@ -1834,7 +1834,7 @@ function print_courses($category) {
         echo '<ul class="unlist">';
         foreach ($courses as $course) {
             if ($course->visible == 1
-                || has_capability('moodle/course:viewhidden',$course->context)) {
+                || has_capability('moodle/course:viewhiddencourses',$course->context)) {
                 echo '<li>';
                 print_course($course);
                 echo "</li>\n";