From: Andrew Dolgov Date: Wed, 17 Aug 2016 14:54:27 +0000 (+0300) Subject: pre-users: disallow renaming admin user X-Git-Tag: 17.1~50 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=a84fb943b4c5a030e215fa819e579ca4646cf617;p=tt-rss.git pre-users: disallow renaming admin user --- diff --git a/classes/pref/users.php b/classes/pref/users.php index a10404d0..164935b2 100644 --- a/classes/pref/users.php +++ b/classes/pref/users.php @@ -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 "
".__("User")."
"; print "
";