Add LOCK permission

This commit is contained in:
Dane Everitt 2019-08-03 14:52:35 -07:00
parent eb81e1ed20
commit e200277655
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
2 changed files with 2 additions and 1 deletions

View file

@ -23,6 +23,7 @@ error encountered during creation or update.
return different groupings of servers. The default value is `subuser-of` which will include all of the user's servers return different groupings of servers. The default value is `subuser-of` which will include all of the user's servers
that they are the owner of, as well as all servers they're a subuser of. that they are the owner of, as well as all servers they're a subuser of.
* Added back ability to toggle OOM killer status on a per-server basis. * Added back ability to toggle OOM killer status on a per-server basis.
* Added `LOCK` permission for generated database users.
### Changed ### Changed
* Updated Paper egg to not download `server.properties` each time. [parkervcp/eggs#260](https://github.com/parkervcp/eggs/issues/260) * Updated Paper egg to not download `server.properties` each time. [parkervcp/eggs#260](https://github.com/parkervcp/eggs/issues/260)

View file

@ -153,7 +153,7 @@ class DatabaseRepository extends EloquentRepository implements DatabaseRepositor
public function assignUserToDatabase(string $database, string $username, string $remote): bool public function assignUserToDatabase(string $database, string $username, string $remote): bool
{ {
return $this->run(sprintf( return $this->run(sprintf(
'GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, ALTER, INDEX, EXECUTE ON `%s`.* TO `%s`@`%s`', 'GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, ALTER, INDEX, LOCK, EXECUTE ON `%s`.* TO `%s`@`%s`',
$database, $database,
$username, $username,
$remote $remote