Skip to content
Snippets Groups Projects
Commit ddc89df8 authored by Erik Johnston's avatar Erik Johnston Committed by Matrix
Browse files

Enable guest access to POST /publicRooms

parent eb24aecf
No related branches found
No related tags found
No related merge requests found
...@@ -307,7 +307,7 @@ class PublicRoomListRestServlet(ClientV1RestServlet): ...@@ -307,7 +307,7 @@ class PublicRoomListRestServlet(ClientV1RestServlet):
server = parse_string(request, "server", default=None) server = parse_string(request, "server", default=None)
try: try:
yield self.auth.get_user_by_req(request) yield self.auth.get_user_by_req(request, allow_guest=True)
except AuthError as e: except AuthError as e:
# We allow people to not be authed if they're just looking at our # We allow people to not be authed if they're just looking at our
# room list, but require auth when we proxy the request. # room list, but require auth when we proxy the request.
...@@ -339,7 +339,7 @@ class PublicRoomListRestServlet(ClientV1RestServlet): ...@@ -339,7 +339,7 @@ class PublicRoomListRestServlet(ClientV1RestServlet):
@defer.inlineCallbacks @defer.inlineCallbacks
def on_POST(self, request): def on_POST(self, request):
yield self.auth.get_user_by_req(request) yield self.auth.get_user_by_req(request, allow_guest=True)
server = parse_string(request, "server", default=None) server = parse_string(request, "server", default=None)
content = parse_json_object_from_request(request) content = parse_json_object_from_request(request)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment