r44756 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r44755‎ | r44756 | r44757 >
Date:08:27, 18 December 2008
Author:aaron
Status:ok
Tags:
Comment:
*Permission tweaks
*Break long line
Modified paths:
  • /trunk/extensions/FlaggedRevs/FlaggedRevs.hooks.php (modified) (history)
  • /trunk/extensions/FlaggedRevs/FlaggedRevs.php (modified) (history)

Diff [purge]

Index: trunk/extensions/FlaggedRevs/FlaggedRevs.php
@@ -180,9 +180,9 @@
181181 $wgGroupPermissions['reviewer']['validate'] = true;
182182 # Let this stand alone just in case...
183183 $wgGroupPermissions['reviewer']['review'] = true;
184 -$wgGroupPermissions['reviewer']['patrol'] = true;
185184
186185 $wgGroupPermissions['bot']['autoreview'] = true;
 186+$wgGroupPermissions['bot']['autopatrolother'] = true;
187187
188188 # Stable version selection and default page revision selection can be set per page.
189189 $wgGroupPermissions['sysop']['stablesettings'] = true;
Index: trunk/extensions/FlaggedRevs/FlaggedRevs.hooks.php
@@ -734,7 +734,8 @@
735735 $patrol = $record = false;
736736 // Is the page reviewable?
737737 if( FlaggedRevs::isPageReviewable( $rc->getTitle() ) ) {
738 - $patrol = FlaggedRevs::revIsFlagged( $rc->getTitle(), $rc->mAttribs['rc_this_oldid'], GAID_FOR_UPDATE );
 738+ $patrol = FlaggedRevs::revIsFlagged( $rc->getTitle(), $rc->mAttribs['rc_this_oldid'],
 739+ GAID_FOR_UPDATE );
739740 // Can this be patrolled?
740741 } else if( FlaggedRevs::isPagePatrollable( $rc->getTitle() ) ) {
741742 $patrol = $wgUser->isAllowed('autopatrolother');

Status & tagging log