Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Merge pull request #1986 from matrix-org/matthew/enable_guest_3p
Browse files Browse the repository at this point in the history
enable guest access for the 3pl/3pid APIs
  • Loading branch information
erikjohnston authored Mar 31, 2017
2 parents 2dc57e7 + 9ee397b commit 2a06b44
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions synapse/rest/client/v2_alpha/thirdparty.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def __init__(self, hs):

@defer.inlineCallbacks
def on_GET(self, request):
yield self.auth.get_user_by_req(request)
yield self.auth.get_user_by_req(request, allow_guest=True)

protocols = yield self.appservice_handler.get_3pe_protocols()
defer.returnValue((200, protocols))
Expand All @@ -54,7 +54,7 @@ def __init__(self, hs):

@defer.inlineCallbacks
def on_GET(self, request, protocol):
yield self.auth.get_user_by_req(request)
yield self.auth.get_user_by_req(request, allow_guest=True)

protocols = yield self.appservice_handler.get_3pe_protocols(
only_protocol=protocol,
Expand All @@ -77,7 +77,7 @@ def __init__(self, hs):

@defer.inlineCallbacks
def on_GET(self, request, protocol):
yield self.auth.get_user_by_req(request)
yield self.auth.get_user_by_req(request, allow_guest=True)

fields = request.args
fields.pop("access_token", None)
Expand All @@ -101,7 +101,7 @@ def __init__(self, hs):

@defer.inlineCallbacks
def on_GET(self, request, protocol):
yield self.auth.get_user_by_req(request)
yield self.auth.get_user_by_req(request, allow_guest=True)

fields = request.args
fields.pop("access_token", None)
Expand Down

0 comments on commit 2a06b44

Please sign in to comment.