Skip to content

Commit

Permalink
reset Database::needRoot flag after root-user session
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
  • Loading branch information
d00p committed Mar 3, 2024
1 parent 3503d60 commit b14eaf4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/Froxlor/Api/Commands/Customers.php
Original file line number Diff line number Diff line change
Expand Up @@ -773,6 +773,7 @@ public function add()
$dbm->getManager()->grantPrivilegesTo($loginname, $password, $mysql_access_host, false, false);
}
$dbm->getManager()->flushPrivileges();
Database::needRoot(false);
}
}

Expand Down Expand Up @@ -1358,6 +1359,7 @@ public function update()
}
}
$dbm->getManager()->flushPrivileges();
Database::needRoot(false);
}

// Retrieve customer's databases
Expand Down Expand Up @@ -1681,6 +1683,7 @@ public function delete()
$dbm->getManager()->deleteUser($result['loginname'], $mysql_access_host);
}
$dbm->getManager()->flushPrivileges();
Database::needRoot(false);
}

// remove all databases
Expand Down

0 comments on commit b14eaf4

Please sign in to comment.