From dbd2d32f30bd4649c9a8740ce5ebc7271a32d27c Mon Sep 17 00:00:00 2001 From: Greg Sabino Mullane Date: Tue, 24 Mar 2009 13:37:50 +0000 Subject: [PATCH] We can rely on usesuper and not just usecreatedb here. --- includes/db/DatabasePostgres.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/db/DatabasePostgres.php b/includes/db/DatabasePostgres.php index 018aabf1db..bc16bdbc56 100644 --- a/includes/db/DatabasePostgres.php +++ b/includes/db/DatabasePostgres.php @@ -257,7 +257,7 @@ class DatabasePostgres extends Database { print "
  • Database \"" . htmlspecialchars( $wgDBname ) . "\" already exists, skipping database creation.
  • "; } else { - if ($perms < 2) { + if ($perms < 1) { print "
  • ERROR: the user \"" . htmlspecialchars( $wgDBsuperuser ) . "\" cannot create databases. "; print 'Please use a different Postgres user.
  • '; dieout(''); -- 2.20.1