Merge pull request #596 from Rugvip/create

handlers/_base: don't allow room create event to be changed
This commit is contained in:
Erik Johnston 2016-03-04 09:43:20 +00:00
commit 44b084a75e

View File

@ -374,6 +374,12 @@ class BaseHandler(object):
"You don't have permission to redact events"
)
if event.type == EventTypes.Create and context.current_state:
raise AuthError(
403,
"Changing the room create event is forbidden",
)
action_generator = ActionGenerator(self.hs)
yield action_generator.handle_push_actions_for_event(
event, context, self