mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-05-26 20:49:55 +00:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 63c2848ac0 | |||
| 40ac1a49d0 |
@@ -25,10 +25,8 @@ pub async fn acl_check(&self, server_name: &ServerName, room_id: &RoomId) -> Res
|
|||||||
return Ok(());
|
return Ok(());
|
||||||
}
|
}
|
||||||
|
|
||||||
if acl_event_content.deny.contains(&String::from("*"))
|
if acl_event_content.deny.contains(&String::from("*")) || acl_event_content.deny.is_empty() {
|
||||||
&& acl_event_content.allow.contains(&String::from("*"))
|
warn!(%room_id, "Ignoring broken ACL event (everyone is banned)");
|
||||||
{
|
|
||||||
warn!(%room_id, "Ignoring broken ACL event (allow key and deny key both contain wildcard \"*\"");
|
|
||||||
return Ok(());
|
return Ok(());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user