From f20ff20449ccbcb07ee7e2c666b5154b48822097 Mon Sep 17 00:00:00 2001 From: moodler Date: Thu, 11 Nov 2004 08:10:01 +0000 Subject: [PATCH] Merged fix from STABLE to hide hidden teachers in a course with separate groups --- user/index.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/user/index.php b/user/index.php index 0abf0433e5..dc26787a75 100644 --- a/user/index.php +++ b/user/index.php @@ -78,18 +78,18 @@ echo ''; } echo ''; - if($compactmode) { + if ($compactmode) { // First of all, remove teachers with no authority $teachers = array_filter($teachers, create_function('$t','return ($t->authority > 0);')); // And now show the remainder as usual $exceptions .= implode(',', array_keys($teachers)); print_user_table($teachers, $isteacher); - } - else { + + } else { foreach ($teachers as $teacher) { if ($isseparategroups) { - if ($teacher->editall or ismember($currentgroup, $teacher->id)) { + if ($teacher->editall or ismember($currentgroup, $teacher->id) and ($teacher->authority > 0)) { print_user($teacher, $course); $exceptions .= "$teacher->id,"; } -- 2.39.5