pre-users: disallow renaming admin user
This commit is contained in:
parent
539f6ee6cd
commit
a84fb943b4
|
@ -37,7 +37,7 @@ class Pref_Users extends Handler_Protected {
|
||||||
$access_level = $this->dbh->fetch_result($result, 0, "access_level");
|
$access_level = $this->dbh->fetch_result($result, 0, "access_level");
|
||||||
$email = $this->dbh->fetch_result($result, 0, "email");
|
$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=\"dlgSec\">".__("User")."</div>";
|
||||||
print "<div class=\"dlgSecCont\">";
|
print "<div class=\"dlgSecCont\">";
|
||||||
|
|
Loading…
Reference in New Issue