pre-users: disallow renaming admin user
This commit is contained in:
parent
539f6ee6cd
commit
a84fb943b4
1 changed files with 1 additions and 1 deletions
|
@ -37,7 +37,7 @@ class Pref_Users extends Handler_Protected {
|
|||
$access_level = $this->dbh->fetch_result($result, 0, "access_level");
|
||||
$email = $this->dbh->fetch_result($result, 0, "email");
|
||||
|
||||
$sel_disabled = ($id == $_SESSION["uid"]) ? "disabled" : "";
|
||||
$sel_disabled = ($id == $_SESSION["uid"] || $login == "admin") ? "disabled" : "";
|
||||
|
||||
print "<div class=\"dlgSec\">".__("User")."</div>";
|
||||
print "<div class=\"dlgSecCont\">";
|
||||
|
|
Loading…
Reference in a new issue