From 81f96bee1f753d418fdc3a4f8d83b2c967e84153 Mon Sep 17 00:00:00 2001 From: Thalia Date: Tue, 27 Aug 2019 00:21:04 +0100 Subject: [PATCH] Use UserIdentity::isRegistered instead of User::isAnon in BlockManager BlockManager::getBlockFromCookieValue accepts a UserIdentity, so should only call methods defined in that interface. Change-Id: If30df15b800cceee0ad052a2e0524df8b28d9901 --- includes/block/BlockManager.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/block/BlockManager.php b/includes/block/BlockManager.php index 948ed930da..83b59c7e59 100644 --- a/includes/block/BlockManager.php +++ b/includes/block/BlockManager.php @@ -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; } -- 2.20.1