summary refs log tree commit diff
path: root/synapse/rest
diff options
context:
space:
mode:
authorWill Hunt <will@half-shot.uk>2018-08-20 18:25:54 +0100
committerWill Hunt <will@half-shot.uk>2018-08-20 18:25:54 +0100
commitf89f6b7c09eb8607c6744db839151452ca44c18e (patch)
treef918526ac2efbd7c43dc13241e9eef8a10436e4e /synapse/rest
parentPort over enough to get some sytests running on Python 3 (#3668) (diff)
downloadsynapse-f89f6b7c09eb8607c6744db839151452ca44c18e.tar.xz
Allow guests to access /rooms/:roomId/event/:eventId
Diffstat (limited to 'synapse/rest')
-rw-r--r--synapse/rest/client/v1/room.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/rest/client/v1/room.py b/synapse/rest/client/v1/room.py
index fcc1091760..976d98387d 100644
--- a/synapse/rest/client/v1/room.py
+++ b/synapse/rest/client/v1/room.py
@@ -531,7 +531,7 @@ class RoomEventServlet(ClientV1RestServlet):
 
     @defer.inlineCallbacks
     def on_GET(self, request, room_id, event_id):
-        requester = yield self.auth.get_user_by_req(request)
+        requester = yield self.auth.get_user_by_req(request, allow_guest=True)
         event = yield self.event_handler.get_event(requester.user, room_id, event_id)
 
         time_now = self.clock.time_msec()