r26185 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r26184‎ | r26185 | r26186 >
Date:18:20, 27 September 2007
Author:aaron
Status:old
Tags:
Comment:
*Don't let blocked users patrol
Modified paths:
  • /trunk/phase3/includes/Article.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Article.php
@@ -1525,7 +1525,16 @@
15261526 $wgOut->permissionRequired( 'patrol' );
15271527 return;
15281528 }
 1529+
 1530+ # Check permissions
 1531+ $permission_errors = $this->mTitle->getUserPermissionsErrors( 'delete', $wgUser );
15291532
 1533+ if (count($permission_errors)>0)
 1534+ {
 1535+ $wgOut->showPermissionsErrorPage( $permission_errors );
 1536+ return;
 1537+ }
 1538+
15301539 # If we haven't been given an rc_id value, we can't do anything
15311540 $rcid = $wgRequest->getVal( 'rcid' );
15321541 if( !$rcid ) {

Follow-up revisions

RevisionCommit summaryAuthorDate
r26257Merged revisions 26134-26247 via svnmerge from...david19:06, 30 September 2007

Status & tagging log