From eccb51f209a7c59401b9cf8fad5d771e41e5b806 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Wed, 25 Mar 2009 14:48:04 +0000 Subject: [PATCH] Double check 'hideuser' before blocking --- includes/specials/SpecialBlockip.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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' ) { -- 2.20.1