mirror of
https://forgejo.ellis.link/continuwuation/continuwuity/
synced 2026-04-13 13:35:39 +00:00
Compare commits
2 Commits
renovate/h
...
nex/feat/i
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
63c2848ac0 | ||
|
|
40ac1a49d0 |
@@ -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(());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user