From: Andrew Garrett Date: Thu, 17 Sep 2009 00:56:27 +0000 (+0000) Subject: Fix bug where checking another user's blocked status (like for contributions) would... X-Git-Tag: 1.31.0-rc.0~39697 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/comptes/ajouter.php?a=commitdiff_plain;h=3e33e37b37d72218501d80995a07ffc2f6d6d8bf;p=lhc%2Fweb%2Fwiklou.git 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 --- 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 {