summary refs log tree commit diff
path: root/synapse/event_auth.py
diff options
context:
space:
mode:
authorPatrick Cloke <clokep@users.noreply.github.com>2021-08-09 04:46:39 -0400
committerGitHub <noreply@github.com>2021-08-09 10:46:39 +0200
commit0c246dd4a09e21e677934d0d83efa573c9127a6f (patch)
tree0d4a9b832854b987cbae993a735273701425e575 /synapse/event_auth.py
parentfix broken links in `upgrade.md` (#10543) (diff)
downloadsynapse-0c246dd4a09e21e677934d0d83efa573c9127a6f.tar.xz
Support MSC3289: Room version 8 (#10449)
This adds support for MSC3289: room version 8. This is room version 7 + MSC3083.
Diffstat (limited to 'synapse/event_auth.py')
-rw-r--r--synapse/event_auth.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/synapse/event_auth.py b/synapse/event_auth.py
index 4c92e9a2d4..c3a0c10499 100644
--- a/synapse/event_auth.py
+++ b/synapse/event_auth.py
@@ -370,10 +370,7 @@ def _is_membership_change_allowed(
             raise AuthError(403, "You are banned from this room")
         elif join_rule == JoinRules.PUBLIC:
             pass
-        elif (
-            room_version.msc3083_join_rules
-            and join_rule == JoinRules.MSC3083_RESTRICTED
-        ):
+        elif room_version.msc3083_join_rules and join_rule == JoinRules.RESTRICTED:
             # This is the same as public, but the event must contain a reference
             # to the server who authorised the join. If the event does not contain
             # the proper content it is rejected.