summary refs log tree commit diff
path: root/synapse/rest/client/v1
diff options
context:
space:
mode:
authorDaniel Wagner-Hall <dawagner@gmail.com>2015-11-11 17:13:24 +0000
committerDaniel Wagner-Hall <dawagner@gmail.com>2015-11-11 17:13:24 +0000
commitf15ba926ccfb36cad31a19fe22a4cb384850f4dd (patch)
tree5992a4931a76546e5d45b44d9cdeef0db2d3354b /synapse/rest/client/v1
parentMerge pull request #358 from matrix-org/daniel/publicwritable (diff)
downloadsynapse-f15ba926ccfb36cad31a19fe22a4cb384850f4dd.tar.xz
Allow guest access to room initialSync
Diffstat (limited to 'synapse/rest/client/v1')
-rw-r--r--synapse/rest/client/v1/room.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/synapse/rest/client/v1/room.py b/synapse/rest/client/v1/room.py
index 03ac073926..df2dc37b24 100644
--- a/synapse/rest/client/v1/room.py
+++ b/synapse/rest/client/v1/room.py
@@ -372,12 +372,13 @@ class RoomInitialSyncRestServlet(ClientV1RestServlet):
 
     @defer.inlineCallbacks
     def on_GET(self, request, room_id):
-        user, _, _ = yield self.auth.get_user_by_req(request)
+        user, _, is_guest = yield self.auth.get_user_by_req(request, allow_guest=True)
         pagination_config = PaginationConfig.from_request(request)
         content = yield self.handlers.message_handler.room_initial_sync(
             room_id=room_id,
             user_id=user.to_string(),
             pagin_config=pagination_config,
+            is_guest=is_guest,
         )
         defer.returnValue((200, content))