feat: Ignore ACLs that deny everyone
This commit is contained in:
parent
e6c7a4ae60
commit
40ac1a49d0
1 changed files with 6 additions and 0 deletions
|
|
@ -36,6 +36,12 @@ pub async fn acl_check(&self, server_name: &ServerName, room_id: &RoomId) -> Res
|
|||
trace!("server {server_name} is allowed by ACL");
|
||||
Ok(())
|
||||
} else {
|
||||
if acl_event_content.deny.contains(&String::from("*"))
|
||||
&& server_name == self.services.globals.server_name()
|
||||
{
|
||||
warn!(%room_id, "Ignoring broken ACL event that denies everyone");
|
||||
return Ok(());
|
||||
}
|
||||
debug!("Server {server_name} was denied by room ACL in {room_id}");
|
||||
Err!(Request(Forbidden("Server was denied by room ACL")))
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue