Fix createRoom power_level_content_override behaviour to match the spec

This commit is contained in:
Michael Telatynski 2019-07-09 00:07:17 +01:00
parent 0d40ae3390
commit 2d90267722
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -750,7 +750,7 @@ class RoomCreationHandler(BaseHandler):
power_level_content["users"][invitee] = 100 power_level_content["users"][invitee] = 100
if power_level_content_override: 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"]: if creator_id not in power_level_content["users"]:
raise SynapseError( raise SynapseError(