mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2025-05-18 12:00:20 -04:00
Merge pull request #596 from Rugvip/create
handlers/_base: don't allow room create event to be changed
This commit is contained in:
commit
44b084a75e
1 changed files with 6 additions and 0 deletions
|
@ -374,6 +374,12 @@ class BaseHandler(object):
|
||||||
"You don't have permission to redact events"
|
"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)
|
action_generator = ActionGenerator(self.hs)
|
||||||
yield action_generator.handle_push_actions_for_event(
|
yield action_generator.handle_push_actions_for_event(
|
||||||
event, context, self
|
event, context, self
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue