r54972 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r54971‎ | r54972 | r54973 >
Date:21:19, 13 August 2009
Author:aaron
Status:ok
Tags:
Comment:
Remove restrictive permission check to stay in line with the non-API version
Modified paths:
  • /trunk/extensions/FlaggedRevs/api/ApiQueryOldreviewedpages.php (modified) (history)

Diff [purge]

Index: trunk/extensions/FlaggedRevs/api/ApiQueryOldreviewedpages.php
@@ -41,15 +41,6 @@
4242 }
4343
4444 private function run( $resultPageSet = null ) {
45 - // Permission check
46 - global $wgUser;
47 - if ( !$wgUser->isAllowed( 'unreviewedpages' ) )
48 - $this->dieUsage(
49 - "You need the unreviewedpages right to request the list of"
50 - ." old reviewed pages.",
51 - 'permissiondenied'
52 - );
53 -
5445 $params = $this->extractRequestParams();
5546
5647 // Construct SQL Query

Status & tagging log