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:
parent
27f8c5b63d
commit
59ba3e3190
1 changed files with 1 additions and 0 deletions
|
@ -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");
|
||||||
|
|
Loading…
Add table
Reference in a new issue