From 3e33e37b37d72218501d80995a07ffc2f6d6d8bf Mon Sep 17 00:00:00 2001 From: Andrew Garrett Date: Thu, 17 Sep 2009 00:56:27 +0000 Subject: [PATCH] Fix bug where checking another user's blocked status (like for contributions) would cause you to be autoblocked if that user was blocked. Regression in r56325 --- includes/User.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/User.php b/includes/User.php index 86e9dffc58..995e6c153c 100644 --- a/includes/User.php +++ b/includes/User.php @@ -1118,7 +1118,7 @@ class User { $this->mBlockreason = $this->mBlock->mReason; $this->mHideName = $this->mBlock->mHideName; $this->mAllowUsertalk = $this->mBlock->mAllowUsertalk; - if ( $this->isLoggedIn() ) { + if ( $this->isLoggedIn() && $wgUser->getID() == $this->getID() ) { $this->spreadBlock(); } } else { -- 2.20.1