From b675c84ae471faa154d1e246963c337278904fa2 Mon Sep 17 00:00:00 2001 From: Michael Kaufmann Date: Mon, 4 Mar 2024 10:21:46 +0100 Subject: [PATCH] correctly add user-wide mysql-user when creating user with mysql-resources (accesst to all databases starting with the loginname) Signed-off-by: Michael Kaufmann --- lib/Froxlor/Api/Commands/Customers.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Froxlor/Api/Commands/Customers.php b/lib/Froxlor/Api/Commands/Customers.php index daa3735db8..ccbef644cf 100644 --- a/lib/Froxlor/Api/Commands/Customers.php +++ b/lib/Froxlor/Api/Commands/Customers.php @@ -770,7 +770,7 @@ public function add() $dbm = new DbManager($this->logger()); // give permission to the user on every access-host we have foreach (array_map('trim', explode(',', Settings::Get('system.mysql_access_host'))) as $mysql_access_host) { - $dbm->getManager()->grantPrivilegesTo($loginname, $password, $mysql_access_host, false, false); + $dbm->getManager()->grantPrivilegesTo($loginname, $password, $mysql_access_host, false, false, true); } $dbm->getManager()->flushPrivileges(); Database::needRoot(false);