Index: trunk/extensions/FlaggedRevs/FlaggedRevs.hooks.php |
— | — | @@ -1986,6 +1986,7 @@ |
1987 | 1987 | } |
1988 | 1988 | |
1989 | 1989 | public static function addToChangeListLine( &$list, &$articlelink, &$s, RecentChange &$rc ) { |
| 1990 | + global $wgUser; |
1990 | 1991 | $title = $rc->getTitle(); // convenience |
1991 | 1992 | if ( !FlaggedRevs::inReviewNamespace( $title ) |
1992 | 1993 | || empty( $rc->mAttribs['rc_this_oldid'] ) |
— | — | @@ -1997,12 +1998,13 @@ |
1998 | 1999 | // page is not reviewed |
1999 | 2000 | if ( $rc->mAttribs['fp_stable'] == null ) { |
2000 | 2001 | // Is this a config were pages start off reviewable? |
2001 | | - if ( !FlaggedRevs::stableOnlyIfConfigured() ) { |
| 2002 | + // Hide notice from non-reviewers due to vandalism concerns (bug 24002). |
| 2003 | + if ( !FlaggedRevs::stableOnlyIfConfigured() && $wgUser->isAllowed( 'review' ) ) { |
2002 | 2004 | $rlink = wfMsgHtml( 'revreview-unreviewedpage' ); |
2003 | 2005 | $css = 'flaggedrevs-unreviewed'; |
2004 | 2006 | } |
2005 | 2007 | // page is reviewed and has pending edits |
2006 | | - } elseif ( $rc->mAttribs['fp_stable'] < $rc->mAttribs['rc_this_oldid'] ) { |
| 2008 | + } elseif ( $rc->mAttribs['rc_this_oldid'] > $rc->mAttribs['fp_stable'] ) { |
2007 | 2009 | $rlink = $list->skin->link( |
2008 | 2010 | $title, |
2009 | 2011 | wfMsgHtml( 'revreview-reviewlink' ), |