summary refs log tree commit diff
diff options
context:
space:
mode:
authorMichael Albert <37796947+awesome-michael@users.noreply.github.com>2020-08-03 13:13:49 +0200
committerGitHub <noreply@github.com>2020-08-03 12:13:49 +0100
commitb6c6fb79506472d8546e0b459de6192afc64f325 (patch)
tree103e348f345845796069d04f81477cf9d7ff6c2a
parentConvert replication code to async/await. (#7987) (diff)
downloadsynapse-b6c6fb79506472d8546e0b459de6192afc64f325.tar.xz
Allow guests to operate in encrypted rooms (#7314)
Signed-off-by: Michael Albert <michael.albert@awesome-technologies.de>
-rw-r--r--changelog.d/7314.misc1
-rw-r--r--synapse/rest/client/v1/room.py2
2 files changed, 2 insertions, 1 deletions
diff --git a/changelog.d/7314.misc b/changelog.d/7314.misc
new file mode 100644
index 0000000000..30720100c2
--- /dev/null
+++ b/changelog.d/7314.misc
@@ -0,0 +1 @@
+Allow guest access to the `GET /_matrix/client/r0/rooms/{room_id}/members` endpoint, according to MSC2689. Contributed by Awesome Technologies Innovationslabor GmbH.
diff --git a/synapse/rest/client/v1/room.py b/synapse/rest/client/v1/room.py
index 26d5a51cb2..2ab30ce897 100644
--- a/synapse/rest/client/v1/room.py
+++ b/synapse/rest/client/v1/room.py
@@ -444,7 +444,7 @@ class RoomMemberListRestServlet(RestServlet):
 
     async def on_GET(self, request, room_id):
         # TODO support Pagination stream API (limit/tokens)
-        requester = await self.auth.get_user_by_req(request)
+        requester = await self.auth.get_user_by_req(request, allow_guest=True)
         handler = self.message_handler
 
         # request the state as of a given event, as identified by a stream token,