diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2012-12-11 05:20:41 -0800 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2012-12-11 05:20:41 -0800 |
commit | eb7dbf3701d27faffb7cdf612da06a158942787f (patch) | |
tree | 9bb97fb3632c256b5e3055d18aff67c8bddb0844 | |
parent | b11912f9bca3a317dd6d0ebeaeeed957ea7ca7d7 (diff) | |
parent | 4327ed83820f045395bbf1431cdddbdedfa19555 (diff) | |
download | nextcloud-server-eb7dbf3701d27faffb7cdf612da06a158942787f.tar.gz nextcloud-server-eb7dbf3701d27faffb7cdf612da06a158942787f.zip |
Merge pull request #697 from eMerzh/revoke_on_create
Revoke DB rights on install only if the db is newly created
-rw-r--r-- | lib/setup.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/setup.php b/lib/setup.php index 264cd55795e..fdd10be6824 100644 --- a/lib/setup.php +++ b/lib/setup.php @@ -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) { |