Don't overwrite privileges for existing users
This commit is contained in:
parent
16a72b4521
commit
ae50ef7594
|
@ -111,7 +111,7 @@ if ($_POST) {
|
|||
if ($old_pass != "") {
|
||||
$row["hashed"] = true;
|
||||
}
|
||||
$grants[$_GET["db"] != "" ? idf_escape($_GET["db"]) . ".*" : ""] = true;
|
||||
$grants[$_GET["db"] != "" && $_GET["user"] == "" ? idf_escape($_GET["db"]) . ".*" : ""] = array();
|
||||
}
|
||||
|
||||
?>
|
||||
|
|
Loading…
Reference in a new issue