summary refs log tree commit diff
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2014-09-02 11:09:43 +0100
committerErik Johnston <erik@matrix.org>2014-09-02 11:11:47 +0100
commit10e782146188d4d1503fb58d8ed57311c5fc1176 (patch)
treed489088923b1efcddb62bc5011bff3b40883165a
parentRemove option for disabling webclient because it was confusing (diff)
downloadsynapse-10e782146188d4d1503fb58d8ed57311c5fc1176.tar.xz
By default, only room ops can change the name and topic.
-rw-r--r--synapse/handlers/room.py2
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},
             )