summary refs log tree commit diff
diff options
context:
space:
mode:
authorErik Johnston <erikj@jki.re>2018-08-22 13:41:08 +0100
committerGitHub <noreply@github.com>2018-08-22 13:41:08 +0100
commitdb10f553ba65af70256c6d95b6f21db84bf654af (patch)
treec31d8336d94c5477607985a1406fda2fe9ae7e41
parentMerge pull request #3659 from matrix-org/erikj/split_profiles (diff)
parent3724.feature (diff)
downloadsynapse-db10f553ba65af70256c6d95b6f21db84bf654af.tar.xz
Merge pull request #3724 from Half-Shot/hs/guest-fetch-event
Allow guests to use /rooms/:roomId/event/:eventId
-rw-r--r--changelog.d/3724.feature1
-rw-r--r--synapse/rest/client/v1/room.py2
2 files changed, 2 insertions, 1 deletions
diff --git a/changelog.d/3724.feature b/changelog.d/3724.feature
new file mode 100644
index 0000000000..1b374ccf47
--- /dev/null
+++ b/changelog.d/3724.feature
@@ -0,0 +1 @@
+Allow guests to use /rooms/:roomId/event/:eventId
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()