fix: fix bug where disabled allowlist would still act as if there was an allow list

This commit is contained in:
NinekoTheCat 2023-12-24 16:14:00 +01:00
parent 7562925aeb
commit f1d725c842
No known key found for this signature in database
GPG key ID: 700DB3F678A4AB66

View file

@ -59,7 +59,8 @@ impl Service {
error!("database failed with {}",error); error!("database failed with {}",error);
false false
} }
Ok(None) => false, Ok(None) if allow_list_enabled => false,
Ok(None) => true,
Ok(Some(data::AclMode::Block)) => false, Ok(Some(data::AclMode::Block)) => false,
Ok(Some(data::AclMode::Allow)) if allow_list_enabled => true, Ok(Some(data::AclMode::Allow)) if allow_list_enabled => true,
Ok(Some(data::AclMode::Allow)) => { Ok(Some(data::AclMode::Allow)) => {