Skip to content

Commit

Permalink
Merge pull request #21 from hallowelt/ERM37370
Browse files Browse the repository at this point in the history
Bug fix query disabled user
  • Loading branch information
osnard authored Jul 2, 2024
2 parents 1e1855c + d8d90e2 commit 5691661
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Data/UserQueryStore/PrimaryDataProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class PrimaryDataProvider extends PrimaryDatabaseDataProvider {
/** @var array */
private $groups = [];
/** @var array */
protected $blocks = [];
private $blocks = [];

/** @var GlobalVarConfig */
protected $mwsgConfig;
Expand Down Expand Up @@ -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,
];
Expand Down

0 comments on commit 5691661

Please sign in to comment.