1
0
Fork 0
forked from alemi/upub

fix: auth filter conditions any, not all

This commit is contained in:
əlemi 2024-04-12 21:18:01 +02:00
parent 6d7d767429
commit ca59c30e70
Signed by: alemi
GPG key ID: A4895B84D311642C

View file

@ -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)),