0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-06-30 00:18:22 +02:00

Fixed GET /events/$id to be not broken.

This commit is contained in:
Kegan Dougal 2014-09-03 11:24:37 +01:00
parent bf10cf5f1a
commit 65693e9e15

View file

@ -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)