]> git.mjollnir.org Git - moodle.git/commitdiff
DOn't print teachers with no authority
authormartin <martin>
Sun, 1 Sep 2002 14:30:39 +0000 (14:30 +0000)
committermartin <martin>
Sun, 1 Sep 2002 14:30:39 +0000 (14:30 +0000)
user/index.php

index f1fc62d815640f2b006ff3def7a71a78fe4ee454..632d0194be25ce2496ac841b913a3914b3a59c8d 100644 (file)
@@ -36,7 +36,9 @@
     if ( $teachers = get_course_teachers($course->id)) {
         echo "<H2 align=center>".$course->teacher."s</H2>";
         foreach ($teachers as $teacher) {
-            print_user($teacher, $course, $string);
+            if ($teacher->authority > 0) {    // Don't print teachers with no authority
+                print_user($teacher, $course, $string);
+            }
         }
     }