only allow admins to send room state events by default (e.g. ACLs)

Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
strawberry 2024-04-14 13:51:23 -04:00 committed by June
parent 27f8c5b63d
commit 59ba3e3190

View file

@ -360,6 +360,7 @@ pub async fn create_room_route(body: Ruma<create_room::v3::Request>) -> Result<c
let mut power_levels_content = serde_json::to_value(RoomPowerLevelsEventContent { let mut power_levels_content = serde_json::to_value(RoomPowerLevelsEventContent {
users, users,
state_default: int!(100),
..Default::default() ..Default::default()
}) })
.expect("event is valid, we just created it"); .expect("event is valid, we just created it");