diff options
author | Kegan Dougal <kegan@matrix.org> | 2014-09-03 11:24:37 +0100 |
---|---|---|
committer | Kegan Dougal <kegan@matrix.org> | 2014-09-03 11:24:45 +0100 |
commit | 65693e9e150341ac0df236817e1afc54ceb5acb5 (patch) | |
tree | 691aa13f9572f9f4d0d41fe389b91b2f714802e7 /synapse/handlers | |
parent | move contentrepo class to it's own file (diff) | |
download | synapse-65693e9e150341ac0df236817e1afc54ceb5acb5.tar.xz |
Fixed GET /events/$id to be not broken.
Diffstat (limited to 'synapse/handlers')
-rw-r--r-- | synapse/handlers/events.py | 4 |
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) |