r86369 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r86368‎ | r86369 | r86370 >
Date:23:44, 18 April 2011
Author:happy-melon
Status:ok
Tags:
Comment:
Blocked bureaucrats should not be able to rename users.
Modified paths:
  • /trunk/extensions/Renameuser/Renameuser_body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Renameuser/Renameuser_body.php
@@ -32,11 +32,16 @@
3333 $wgOut->permissionRequired( 'renameuser' );
3434 return;
3535 }
 36+
3637 if ( wfReadOnly() ) {
3738 $wgOut->readOnlyPage();
3839 return;
3940 }
4041
 42+ if( $wgUser->isBlocked() ){
 43+ $wgOut->blockedPage();
 44+ }
 45+
4146 $showBlockLog = $wgRequest->getBool( 'submit-showBlockLog' );
4247 $oldnamePar = trim( str_replace( '_', ' ', $wgRequest->getText( 'oldusername', $par ) ) );
4348 $oldusername = Title::makeTitle( NS_USER, $oldnamePar );

Status & tagging log