r40007 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r40006‎ | r40007 | r40008 >
Date:06:21, 26 August 2008
Author:aaron
Status:old
Tags:
Comment:
check $this->isRateable()
Modified paths:
  • /trunk/extensions/FlaggedRevs/FlaggedArticle.php (modified) (history)

Diff [purge]

Index: trunk/extensions/FlaggedRevs/FlaggedArticle.php
@@ -765,7 +765,7 @@
766766 return true;
767767 $title = $skin->mTitle->getSubjectPage();
768768 # Add rating tab
769 - if( $wgUser->isAllowed( 'feedback' ) ) {
 769+ if( $wgUser->isAllowed( 'feedback' ) && $this->isRateable() ) {
770770 wfLoadExtensionMessages( 'FlaggedRevs' );
771771 wfLoadExtensionMessages( 'RatingHistory' );
772772 $ratingTitle = SpecialPage::getTitleFor( 'RatingHistory' );

Status & tagging log