fixes bug 4400

This commit is contained in:
toyomoyo
2005-12-02 02:23:07 +00:00
parent f560b24c61
commit 2b0ba67d31
+1 -1
View File
@@ -246,7 +246,7 @@
// Print other functions
echo '<div class="buttons"><table align="center"><tr>';
if ($currentuser and !isguest()) {
if ($currentuser and !isguest() and is_restricted_user($currentuser->username)) {
if ($internalpassword ) {
echo "<td nowrap=\"nowrap\"><form action=\"$internalpassword\" method=\"get\">";
echo "<input type=\"hidden\" name=\"id\" value=\"$course->id\" />";