Skip to content

Commit

Permalink
correctly add user-wide mysql-user when creating user with mysql-reso…
Browse files Browse the repository at this point in the history
…urces (accesst to all databases starting with the loginname)

Signed-off-by: Michael Kaufmann <[email protected]>
  • Loading branch information
d00p committed Mar 4, 2024
1 parent c0fdc62 commit b675c84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Froxlor/Api/Commands/Customers.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit b675c84

Please sign in to comment.