mirror of
https://github.com/element-hq/synapse.git
synced 2024-12-19 17:56:19 +03:00
fix if condition
This commit is contained in:
parent
ed1eb6dff6
commit
8c8482c7c6
1 changed files with 1 additions and 0 deletions
|
@ -563,6 +563,7 @@ class RoomCreationHandler(BaseHandler):
|
||||||
power_level_content_override = config.get("power_level_content_override")
|
power_level_content_override = config.get("power_level_content_override")
|
||||||
if (
|
if (
|
||||||
power_level_content_override
|
power_level_content_override
|
||||||
|
and "users" in power_level_content_override
|
||||||
and user_id not in power_level_content_override["users"]
|
and user_id not in power_level_content_override["users"]
|
||||||
):
|
):
|
||||||
raise SynapseError(
|
raise SynapseError(
|
||||||
|
|
Loading…
Reference in a new issue