diff options
author | Erik Johnston <erik@matrix.org> | 2014-09-03 11:59:57 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2014-09-03 12:01:14 +0100 |
commit | b50ea730b15706d0e2099f94cf8b3cf24b5c5433 (patch) | |
tree | 05fb4bb1190f0f2223de49bf17060481a8bfad70 /synapse/handlers/events.py | |
parent | Add option to change content repo location (diff) | |
parent | Edited /presence REST servlet to raise SynapseErrors to return a standard err... (diff) | |
download | synapse-b50ea730b15706d0e2099f94cf8b3cf24b5c5433.tar.xz |
Merge branch 'develop' of github.com:matrix-org/synapse into develop
Conflicts: synapse/http/server.py synapse/http/content_repository.py
Diffstat (limited to 'synapse/handlers/events.py')
-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) |