From 2f45a907f94eb288cef4ab22401af3ba0dff5f52 Mon Sep 17 00:00:00 2001 From: Matthias Ahouansou Date: Wed, 26 Jun 2024 22:05:44 +0100 Subject: [PATCH] fix: don't ignore ACLs when there is no content despite this being very bad behavior, it is required by the spec --- src/service/rooms/event_handler/mod.rs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/service/rooms/event_handler/mod.rs b/src/service/rooms/event_handler/mod.rs index 0bdfd4ae..002b8d77 100644 --- a/src/service/rooms/event_handler/mod.rs +++ b/src/service/rooms/event_handler/mod.rs @@ -1687,11 +1687,6 @@ impl Service { } }; - if acl_event_content.allow.is_empty() { - // Ignore broken acl events - return Ok(()); - } - if acl_event_content.is_allowed(server_name) { Ok(()) } else {