Double check 'hideuser' before blocking
authorAaron Schulz <aaron@users.mediawiki.org>
Wed, 25 Mar 2009 14:48:04 +0000 (14:48 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Wed, 25 Mar 2009 14:48:04 +0000 (14:48 +0000)
includes/specials/SpecialBlockip.php

index 3dbd091..b5e5f20 100644 (file)
@@ -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' ) {