mirror of
https://github.com/element-hq/synapse
synced 2024-09-11 19:25:11 +00:00
Fixed GET /events/$id to be not broken.
This commit is contained in:
parent
bf10cf5f1a
commit
65693e9e15
1 changed files with 3 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue