From: Aaron Schulz Date: Wed, 25 Mar 2009 14:48:04 +0000 (+0000) Subject: Double check 'hideuser' before blocking X-Git-Tag: 1.31.0-rc.0~42363 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_aide%28?a=commitdiff_plain;h=eccb51f209a7c59401b9cf8fad5d771e41e5b806;p=lhc%2Fweb%2Fwiklou.git Double check 'hideuser' before blocking --- diff --git a/includes/specials/SpecialBlockip.php b/includes/specials/SpecialBlockip.php index 3dbd0918d0..b5e5f20ced 100644 --- a/includes/specials/SpecialBlockip.php +++ b/includes/specials/SpecialBlockip.php @@ -395,7 +395,8 @@ class IPBlockForm { } if( $this->BlockHideName ) { - if( !$userId ) { + // Recheck params here... + if( !$userId || !$wgUser->isAllowed('hideuser') ) { // IP users should not be hidden $this->BlockHideName = false; } else if( $expiry !== 'infinity' ) {