Forgotten fix: don't allow special read/write access for 'developer'
authorBrion Vibber <brion@users.mediawiki.org>
Wed, 3 Dec 2003 23:08:44 +0000 (23:08 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Wed, 3 Dec 2003 23:08:44 +0000 (23:08 +0000)
includes/SpecialAsksql.php

index a4ecf02..2cc45bc 100644 (file)
@@ -68,9 +68,7 @@ class SqlQueryForm {
                        and !preg_match( "/LIMIT/i", $wpSqlQuery ) ) {
                        $wpSqlQuery .= " LIMIT 100";
                }
-               if ( ! $wgUser->isDeveloper() ) {
-                       $connection = wfGetDB( $wgDBsqluser, $wgDBsqlpassword );
-               }
+               $connection = wfGetDB( $wgDBsqluser, $wgDBsqlpassword );
                $this->logQuery( $wpSqlQuery );
                $res = wfQuery( $wpSqlQuery, DB_WRITE, "SpecialAsksql::doSubmit" );
                $this->logFinishedQuery();