mirror of
https://github.com/vrana/adminer.git
synced 2025-08-10 16:44:17 +02:00
Don't overwrite privileges for existing users
This commit is contained in:
@@ -111,7 +111,7 @@ if ($_POST) {
|
|||||||
if ($old_pass != "") {
|
if ($old_pass != "") {
|
||||||
$row["hashed"] = true;
|
$row["hashed"] = true;
|
||||||
}
|
}
|
||||||
$grants[$_GET["db"] != "" ? idf_escape($_GET["db"]) . ".*" : ""] = true;
|
$grants[$_GET["db"] != "" && $_GET["user"] == "" ? idf_escape($_GET["db"]) . ".*" : ""] = array();
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
Reference in New Issue
Block a user