From ca59c30e70f0a99d381c5645ab67e3ed3fef3264 Mon Sep 17 00:00:00 2001 From: alemi Date: Fri, 12 Apr 2024 21:18:01 +0200 Subject: [PATCH] fix: auth filter conditions any, not all --- src/server/auth.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/auth.rs b/src/server/auth.rs index 9469e6a7..701be43c 100644 --- a/src/server/auth.rs +++ b/src/server/auth.rs @@ -15,7 +15,7 @@ pub enum Identity { impl Identity { pub fn filter_condition(&self) -> Condition { - let base_cond = Condition::all().add(model::addressing::Column::Actor.eq(apb::target::PUBLIC)); + let base_cond = Condition::any().add(model::addressing::Column::Actor.eq(apb::target::PUBLIC)); match self { Identity::Anonymous => base_cond, Identity::Local(uid) => base_cond.add(model::addressing::Column::Actor.eq(uid)),