summary refs log tree commit diff
path: root/synapse/api
diff options
context:
space:
mode:
Diffstat (limited to 'synapse/api')
-rw-r--r--synapse/api/auth.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/synapse/api/auth.py b/synapse/api/auth.py
index 635571d2b6..1a8785e890 100644
--- a/synapse/api/auth.py
+++ b/synapse/api/auth.py
@@ -271,7 +271,8 @@ class Auth(object):
         else:
             key = (RoomCreateEvent.TYPE, "", )
             create_event = event.old_state_events.get(key)
-            if create_event.content["creator"] == user_id:
+            if (create_event is not None and
+                create_event.content["creator"] == user_id):
                 return 100
 
         return level