From: gustav_delius Date: Sun, 30 May 2004 01:02:39 +0000 (+0000) Subject: Also admin now sees only his or her own courses in the "My courses" block. Fixes... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=fad21b7c7b83a72ab35276af03b8f1c01b04c8b1;p=moodle.git Also admin now sees only his or her own courses in the "My courses" block. Fixes bug 526 --- diff --git a/blocks/course_list/block_course_list.php b/blocks/course_list/block_course_list.php index c48ea436f4..483b6f66b7 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) and !isadmin()) { // Just print My Courses + if (isset($USER->id)) { // Just print My Courses if ($courses = get_my_courses($USER->id)) { foreach ($courses as $course) { if (!$course->category) {