mirror of
https://github.com/element-hq/synapse.git
synced 2024-12-20 02:24:54 +03:00
Fix createRoom power_level_content_override behaviour to match the spec
This commit is contained in:
parent
0d40ae3390
commit
2d90267722
2 changed files with 2 additions and 2 deletions
|
@ -1 +1 @@
|
|||
Fix bad room creation with power_level_content_override.users not containing creator_id.
|
||||
Fix createRoom power_level_content_override behaviour to match the spec
|
|
@ -750,7 +750,7 @@ class RoomCreationHandler(BaseHandler):
|
|||
power_level_content["users"][invitee] = 100
|
||||
|
||||
if power_level_content_override:
|
||||
power_level_content.update(power_level_content_override)
|
||||
power_level_content = power_level_content_override
|
||||
|
||||
if creator_id not in power_level_content["users"]:
|
||||
raise SynapseError(
|
||||
|
|
Loading…
Reference in a new issue