mirror of
https://github.com/nextcloud/server.git
synced 2026-03-16 23:53:28 -04:00
Merge pull request #697 from eMerzh/revoke_on_create
Revoke DB rights on install only if the db is newly created
This commit is contained in:
commit
eb7dbf3701
1 changed files with 4 additions and 2 deletions
|
|
@ -319,9 +319,11 @@ class OC_Setup {
|
|||
$entry.='Offending command was: '.$query.'<br />';
|
||||
echo($entry);
|
||||
}
|
||||
else {
|
||||
$query = "REVOKE ALL PRIVILEGES ON DATABASE \"$e_name\" FROM PUBLIC";
|
||||
$result = pg_query($connection, $query);
|
||||
}
|
||||
}
|
||||
$query = "REVOKE ALL PRIVILEGES ON DATABASE \"$e_name\" FROM PUBLIC";
|
||||
$result = pg_query($connection, $query);
|
||||
}
|
||||
|
||||
private static function pg_createDBUser($name, $password, $connection) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue