From 10e782146188d4d1503fb58d8ed57311c5fc1176 Mon Sep 17 00:00:00 2001 From: Erik Johnston Date: Tue, 2 Sep 2014 11:09:43 +0100 Subject: [PATCH] By default, only room ops can change the name and topic. --- synapse/handlers/room.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/synapse/handlers/room.py b/synapse/handlers/room.py index 048b71930..53aa77405 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}, )