From: Brion Vibber Date: Wed, 3 Dec 2003 23:08:44 +0000 (+0000) Subject: Forgotten fix: don't allow special read/write access for 'developer' X-Git-Tag: 1.1.0~25 X-Git-Url: https://git.cyclocoop.org/%28%28?a=commitdiff_plain;h=efb03ea41e0bbc76d6737d5e8f5c80092c963625;p=lhc%2Fweb%2Fwiklou.git Forgotten fix: don't allow special read/write access for 'developer' --- diff --git a/includes/SpecialAsksql.php b/includes/SpecialAsksql.php index a4ecf023d3..2cc45bc91e 100644 --- a/includes/SpecialAsksql.php +++ b/includes/SpecialAsksql.php @@ -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();