diff options
author | Daniel Wagner-Hall <dawagner@gmail.com> | 2015-11-11 17:49:44 +0000 |
---|---|---|
committer | Daniel Wagner-Hall <dawagner@gmail.com> | 2015-11-11 17:49:44 +0000 |
commit | e93d550b79e7e485bb2866ef956fca2379cefac7 (patch) | |
tree | b3b103dc590f581d060e7e5ca22c35f3fc47b890 /synapse/rest/client | |
parent | Merge pull request #358 from matrix-org/daniel/publicwritable (diff) | |
download | synapse-e93d550b79e7e485bb2866ef956fca2379cefac7.tar.xz |
Allow guests to access room context API
Diffstat (limited to 'synapse/rest/client')
-rw-r--r-- | synapse/rest/client/v1/room.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/rest/client/v1/room.py b/synapse/rest/client/v1/room.py index 03ac073926..c583025e30 100644 --- a/synapse/rest/client/v1/room.py +++ b/synapse/rest/client/v1/room.py @@ -417,12 +417,12 @@ class RoomEventContext(ClientV1RestServlet): @defer.inlineCallbacks def on_GET(self, request, room_id, event_id): - user, _ = yield self.auth.get_user_by_req(request) + user, _, is_guest = yield self.auth.get_user_by_req(request, allow_guest=True) limit = int(request.args.get("limit", [10])[0]) results = yield self.handlers.room_context_handler.get_event_context( - user, room_id, event_id, limit, + user, room_id, event_id, limit, is_guest ) time_now = self.clock.time_msec() |