diff --git a/blocks/course_list/block_course_list.php b/blocks/course_list/block_course_list.php index c8880649ba7..dd9434c84f4 100644 --- a/blocks/course_list/block_course_list.php +++ b/blocks/course_list/block_course_list.php @@ -34,7 +34,7 @@ class block_course_list extends block_list { } } - if (isset($USER->id) and !(isadmin() and $adminseesall)) { // Just print My Courses + if (empty($CFG->disablemycourses) and isset($USER->id) and !(isadmin() and $adminseesall)) { // Just print My Courses if ($courses = get_my_courses($USER->id)) { foreach ($courses as $course) { if ($course->id == SITEID) {