Compare commits
2 commits
main
...
nex/feat/i
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
63c2848ac0 | ||
|
|
40ac1a49d0 |
1 changed files with 2 additions and 4 deletions
|
|
@ -25,10 +25,8 @@ pub async fn acl_check(&self, server_name: &ServerName, room_id: &RoomId) -> Res
|
|||
return Ok(());
|
||||
}
|
||||
|
||||
if acl_event_content.deny.contains(&String::from("*"))
|
||||
&& acl_event_content.allow.contains(&String::from("*"))
|
||||
{
|
||||
warn!(%room_id, "Ignoring broken ACL event (allow key and deny key both contain wildcard \"*\"");
|
||||
if acl_event_content.deny.contains(&String::from("*")) || acl_event_content.deny.is_empty() {
|
||||
warn!(%room_id, "Ignoring broken ACL event (everyone is banned)");
|
||||
return Ok(());
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue