Revoke DB rights on install only if the db is newly created
This commit is contained in:
parent
4cb760a924
commit
4327ed8382
|
@ -319,10 +319,12 @@ 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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private static function pg_createDBUser($name, $password, $connection) {
|
||||
$e_name = pg_escape_string($name);
|
||||
|
|
Loading…
Reference in New Issue