From a1f307f7d1ca6d4f83f9f43272a4b152cfdee299 Mon Sep 17 00:00:00 2001
From: Richard van der Hoff <richard@matrix.org>
Date: Tue, 28 Jan 2020 14:55:22 +0000
Subject: [PATCH] fix bad variable ref

---
 synapse/event_auth.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/synapse/event_auth.py b/synapse/event_auth.py
index 3240e8a7b2..472f165044 100644
--- a/synapse/event_auth.py
+++ b/synapse/event_auth.py
@@ -153,7 +153,7 @@ def check(
 
         # 4c. Otherwise, allow.
         # This is removed by https://github.com/matrix-org/matrix-doc/pull/2260
-        if room_version.special_case_aliases_auth:
+        if room_version_obj.special_case_aliases_auth:
             logger.debug("Allowing! %s", event)
             return
 
-- 
GitLab