From d8d90e2bb83ca134e3d9b7d2b4b572c17186252f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Riedm=C3=BCller?= Date: Tue, 2 Jul 2024 09:09:20 +0200 Subject: [PATCH] Bug fix query disabled user ERM37370 [4.5.x] --- src/Data/UserQueryStore/PrimaryDataProvider.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Data/UserQueryStore/PrimaryDataProvider.php b/src/Data/UserQueryStore/PrimaryDataProvider.php index 0670f8d..60a6120 100644 --- a/src/Data/UserQueryStore/PrimaryDataProvider.php +++ b/src/Data/UserQueryStore/PrimaryDataProvider.php @@ -13,7 +13,7 @@ class PrimaryDataProvider extends PrimaryDatabaseDataProvider { /** @var array */ private $groups = []; /** @var array */ - protected $blocks = []; + private $blocks = []; /** @var GlobalVarConfig */ protected $mwsgConfig; @@ -161,7 +161,7 @@ protected function appendRowToData( \stdClass $row ) { 'user_registration' => $row->user_registration, 'user_editcount' => (int)$row->user_editcount, 'groups' => isset( $this->groups[$row->user_id] ) ? $this->groups[$row->user_id] : [], - 'enabled' => $this->isUserBlocked( $row->user_id ), + 'enabled' => !$this->isUserBlocked( $row->user_id ), // legacy fields 'display_name' => $row->user_real_name == null ? $row->user_name : $row->user_real_name, ];