From: moodler Date: Mon, 22 Sep 2003 13:25:27 +0000 (+0000) Subject: Fixed bug when main admin was editing externally-defined accounts X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=9f798bff9f252a90d11837f591598fffd7a13449;p=moodle.git Fixed bug when main admin was editing externally-defined accounts (the username/password was editable) --- diff --git a/user/edit.html b/user/edit.html index 710274e7c6..17cc511e1a 100644 --- a/user/edit.html +++ b/user/edit.html @@ -13,7 +13,7 @@ id == $USER->id); + $adminself = (($theadmin->id == $USER->id) and ($USER->id == $user->id)); echo ""; echo "

".get_string("username").":"; if ($adminself || $CFG->auth == "email" || $CFG->auth == "none" || $CFG->auth == "manual"){