forked from alemi/upub
fix: auth filter conditions any, not all
This commit is contained in:
parent
6d7d767429
commit
ca59c30e70
1 changed files with 1 additions and 1 deletions
|
@ -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)),
|
||||
|
|
Loading…
Reference in a new issue