summary refs log tree commit diff
path: root/synapse/handlers
diff options
context:
space:
mode:
authorKegan Dougal <kegan@matrix.org>2014-09-03 11:24:37 +0100
committerKegan Dougal <kegan@matrix.org>2014-09-03 11:24:45 +0100
commit65693e9e150341ac0df236817e1afc54ceb5acb5 (patch)
tree691aa13f9572f9f4d0d41fe389b91b2f714802e7 /synapse/handlers
parentmove contentrepo class to it's own file (diff)
downloadsynapse-65693e9e150341ac0df236817e1afc54ceb5acb5.tar.xz
Fixed GET /events/$id to be not broken.
Diffstat (limited to 'synapse/handlers')
-rw-r--r--synapse/handlers/events.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/synapse/handlers/events.py b/synapse/handlers/events.py
index 980a169b25..3e9efabd2c 100644
--- a/synapse/handlers/events.py
+++ b/synapse/handlers/events.py
@@ -126,5 +126,7 @@ class EventHandler(BaseHandler):
             defer.returnValue(None)
             return
 
-        yield self.auth.check(event, raises=True)
+        if hasattr(event, "room_id"):
+            yield self.auth.check_joined_room(event.room_id, user.to_string())
+
         defer.returnValue(event)