r49054 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r49053‎ | r49054 | r49055 >
Date:00:55, 31 March 2009
Author:aaron
Status:ok
Tags:
Comment:
Don't apply $wgFlagAvailability to level 0
Modified paths:
  • /trunk/extensions/FlaggedRevs/specialpages/RevisionReview_body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/FlaggedRevs/specialpages/RevisionReview_body.php
@@ -762,7 +762,7 @@
763763 public static function userCan( $tag, $value, $config = array() ) {
764764 global $wgFlagRestrictions, $wgUser;
765765 # Levels may not apply for some pages
766 - if( !self::levelAvailable( $tag, $value, $config ) )
 766+ if( $value > 0 && !self::levelAvailable( $tag, $value, $config ) )
767767 return false;
768768 # No restrictions -> full access
769769 if( !isset($wgFlagRestrictions[$tag]) )

Status & tagging log