Merge "Use UserIdentity::isRegistered instead of User::isAnon in BlockManager"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Tue, 27 Aug 2019 15:22:40 +0000 (15:22 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Tue, 27 Aug 2019 15:22:40 +0000 (15:22 +0000)
includes/block/BlockManager.php

index 948ed93..83b59c7 100644 (file)
@@ -257,7 +257,7 @@ class BlockManager {
                        $block = DatabaseBlock::newFromID( $blockCookieId );
                        if (
                                $block instanceof DatabaseBlock &&
-                               $this->shouldApplyCookieBlock( $block, $user->isAnon() )
+                               $this->shouldApplyCookieBlock( $block, !$user->isRegistered() )
                        ) {
                                return $block;
                        }