Fix for Bug #2435 - Hidden teachers and site admins are shown in no response list.

This commit is contained in:
danmarsden
2005-04-05 00:35:05 +00:00
parent a5fd09ddce
commit af40722cc5
2 changed files with 14 additions and 10 deletions
+7 -5
View File
@@ -113,11 +113,13 @@
echo "<table width=\"100%\">";
foreach ($userlist as $user) {
echo "<tr><td width=\"10\" nowrap=\"nowrap\">";
print_user_picture($user->id, $course->id, $user->picture);
echo "</td><td width=\"100%\" nowrap=\"nowrap\">";
echo "<p>".fullname($user, true)."</p>";
echo "</td></tr>";
if (!($optionid==0 && isadmin($user->id)) && !($optionid==0 && isteacher($course->id, $user->id) && !(isteacheredit($course->id, $user->id)) ) ) { //make sure admins and hidden teachers are not shown in not answered yet column.
echo "<tr><td width=\"10\" nowrap=\"nowrap\">";
print_user_picture($user->id, $course->id, $user->picture);
echo "</td><td width=\"100%\" nowrap=\"nowrap\">";
echo "<p>".fullname($user, true)."</p>";
echo "</td></tr>";
}
}
echo "</table>";
+7 -5
View File
@@ -245,11 +245,13 @@
echo "<table width=\"100%\">";
foreach ($userlist as $user) {
echo "<tr><td width=\"10\" nowrap=\"nowrap\">";
print_user_picture($user->id, $course->id, $user->picture);
echo "</td><td width=\"100%\" nowrap=\"nowrap\">";
echo "<p>".fullname($user, $isteacher)."</p>";
echo "</td></tr>";
if (!($optionid==0 && isadmin($user->id)) && !($optionid==0 && isteacher($course->id, $user->id) && !(isteacheredit($course->id, $user->id)) ) ) { //make sure admins and hidden teachers are not shown in not answered yet column.
echo "<tr><td width=\"10\" nowrap=\"nowrap\">";
print_user_picture($user->id, $course->id, $user->picture);
echo "</td><td width=\"100%\" nowrap=\"nowrap\">";
echo "<p>".fullname($user, $isteacher)."</p>";
echo "</td></tr>";
}
}
echo "</table>";