fix weird issue with acl c2s check

Signed-off-by: June Clementine Strawberry <june@3.dog>
This commit is contained in:
June Clementine Strawberry 2025-04-02 10:49:38 -04:00
parent 0f81c1e1cc
commit 1b71b99c51
No known key found for this signature in database

View file

@ -229,6 +229,9 @@ async fn allowed_to_send_state_event(
if acl_content.deny.contains(&String::from("*"))
&& !acl_content.is_allowed(services.globals.server_name())
&& !acl_content
.allow
.contains(&services.globals.server_name().to_string())
{
return Err!(Request(BadJson(debug_warn!(
?room_id,
@ -240,6 +243,9 @@ async fn allowed_to_send_state_event(
if !acl_content.allow.contains(&String::from("*"))
&& !acl_content.is_allowed(services.globals.server_name())
&& !acl_content
.allow
.contains(&services.globals.server_name().to_string())
{
return Err!(Request(BadJson(debug_warn!(
?room_id,