MDL-12875 - Hidden courses not in category list not visible to teachers on those courses in the list of courses in a category.

This commit is contained in:
tjhunt
2008-01-08 15:17:04 +00:00
parent 0229dc83ea
commit e0a411d4a4
+1 -1
View 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";