From: moodler Date: Sun, 30 May 2004 05:52:26 +0000 (+0000) Subject: Undoing Gustav's checkin ... the admin needs to see all courses X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=4588b7d2e519457613375e7cb315d629d22a324b;p=moodle.git Undoing Gustav's checkin ... the admin needs to see all courses --- diff --git a/blocks/course_list/block_course_list.php b/blocks/course_list/block_course_list.php index 483b6f66b7..c48ea436f4 100644 --- a/blocks/course_list/block_course_list.php +++ b/blocks/course_list/block_course_list.php @@ -32,7 +32,7 @@ class CourseBlock_course_list extends MoodleBlock { " height=\"16\" width=\"16\" alt=\"".get_string("course")."\">"; } - if (isset($USER->id)) { // Just print My Courses + if (isset($USER->id) and !isadmin()) { // Just print My Courses if ($courses = get_my_courses($USER->id)) { foreach ($courses as $course) { if (!$course->category) {