diff --git a/classes/userGroup/Repository.php b/classes/userGroup/Repository.php index fb6f0c5f466..4d34ab9cefc 100644 --- a/classes/userGroup/Repository.php +++ b/classes/userGroup/Repository.php @@ -220,7 +220,7 @@ public function userInGroup(int $userId, int $userGroupId): bool { return UserUserGroup::query() ->withUserId($userId) - ->withUserGroupIds($userGroupId) + ->withUserGroupIds([$userGroupId]) ->withActive() ->exists(); }