Skip to content

Commit 11f21e7

Browse files
rmunnhahn-kevmegahirt
authored
Treat missing isDeleted field as false (#1772)
Fixes bug where missing isDeleted field was causing users to *not* show up in active-user lists. Co-authored-by: Kevin Hahn <[email protected]> Co-authored-by: Christopher Hirt <[email protected]>
1 parent 2093c7c commit 11f21e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Api/Model/Shared/UserListModel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ public function __construct()
1010
{
1111
parent::__construct(
1212
UserModelMongoMapper::instance(),
13-
["username" => ['$regex' => ""], "isDeleted" => false],
13+
["username" => ['$regex' => ""], "isDeleted" => ['$in' => [false, null]]],
1414
["username", "email", "name", "avatar_ref", "role", "projects", "active"]
1515
);
1616
}

0 commit comments

Comments
 (0)