]> git.mjollnir.org Git - moodle.git/commitdiff
Also admin now sees only his or her own courses in the "My courses" block. Fixes...
authorgustav_delius <gustav_delius>
Sun, 30 May 2004 01:02:39 +0000 (01:02 +0000)
committergustav_delius <gustav_delius>
Sun, 30 May 2004 01:02:39 +0000 (01:02 +0000)
blocks/course_list/block_course_list.php

index c48ea436f474cd29bc129828f98a783db3fba951..483b6f66b75b4bafa4dcbaf44791adab02b3ac46 100644 (file)
@@ -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) {