diff options
author | Erik Johnston <erik@matrix.org> | 2014-09-02 11:09:43 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2014-09-02 11:11:47 +0100 |
commit | 10e782146188d4d1503fb58d8ed57311c5fc1176 (patch) | |
tree | d489088923b1efcddb62bc5011bff3b40883165a /synapse/handlers | |
parent | Remove option for disabling webclient because it was confusing (diff) | |
download | synapse-10e782146188d4d1503fb58d8ed57311c5fc1176.tar.xz |
By default, only room ops can change the name and topic.
Diffstat (limited to '')
-rw-r--r-- | synapse/handlers/room.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/synapse/handlers/room.py b/synapse/handlers/room.py index 048b719307..53aa77405c 100644 --- a/synapse/handlers/room.py +++ b/synapse/handlers/room.py @@ -133,6 +133,7 @@ class RoomCreationHandler(BaseRoomHandler): etype=RoomNameEvent.TYPE, room_id=room_id, user_id=user_id, + required_power_level=5, content={"name": name}, ) @@ -144,6 +145,7 @@ class RoomCreationHandler(BaseRoomHandler): etype=RoomTopicEvent.TYPE, room_id=room_id, user_id=user_id, + required_power_level=5, content={"topic": topic}, ) |