Fix bug where checking another user's blocked status (like for contributions) would...
authorAndrew Garrett <werdna@users.mediawiki.org>
Thu, 17 Sep 2009 00:56:27 +0000 (00:56 +0000)
committerAndrew Garrett <werdna@users.mediawiki.org>
Thu, 17 Sep 2009 00:56:27 +0000 (00:56 +0000)
includes/User.php

index 86e9dff..995e6c1 100644 (file)
@@ -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 {