From 3518ee048d746c4a68689d5294774d3370462257 Mon Sep 17 00:00:00 2001 From: Nyaaori <+@nyaaori.cat> Date: Sat, 3 Sep 2022 14:16:32 +0200 Subject: [PATCH] fix: Add backfill ACL check --- src/api/server_server.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/api/server_server.rs b/src/api/server_server.rs index b0b33b86..8dee3974 100644 --- a/src/api/server_server.rs +++ b/src/api/server_server.rs @@ -982,6 +982,11 @@ pub async fn get_backfill_route( )); } + services() + .rooms + .event_handler + .acl_check(sender_servername, &body.room_id)?; + let origin = services().globals.server_name().to_owned(); let earliest_events = &[];