Hidden teachers should not be shown in separate groups mode

This commit is contained in:
moodler
2004-11-03 14:11:52 +00:00
parent 5ff5caa58d
commit fa1c36fb99
+1 -1
View File
@@ -63,7 +63,7 @@
echo "<h2 align=\"center\">$course->teachers</h2>";
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,";
}