From d951d0eed50cbab9f2a47dfd9c057bd10a9e77fc Mon Sep 17 00:00:00 2001 From: Quentin Gliech Date: Wed, 17 Jun 2026 15:11:29 +0200 Subject: [PATCH] Remove special case for the empty client filter --- crates/storage-pg/src/user/mod.rs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/crates/storage-pg/src/user/mod.rs b/crates/storage-pg/src/user/mod.rs index 0a5aea3c3..59880d57e 100644 --- a/crates/storage-pg/src/user/mod.rs +++ b/crates/storage-pg/src/user/mod.rs @@ -134,11 +134,6 @@ impl Filter for UserFilter<'_> { })) .add_option(self.active_oauth2_session_for_any_of_clients().map( |clients| -> SimpleExpr { - if clients.is_empty() { - // "Has an active OAuth2 session for any of these - // zero clients" matches no row. - return Expr::val(false).into(); - } let client_ids: Vec = clients .iter() .map(|c| Expr::val(Uuid::from(*c)).into())