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

Commit

Permalink
enable guest access for the 3pl/3pid APIs
Browse files Browse the repository at this point in the history
  • Loading branch information
ara4n committed Mar 12, 2017
1 parent 663396e commit a61dd40
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions synapse/rest/client/v2_alpha/thirdparty.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,6 @@ def __init__(self, hs):

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

protocols = yield self.appservice_handler.get_3pe_protocols()
defer.returnValue((200, protocols))

Expand All @@ -54,8 +52,6 @@ def __init__(self, hs):

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

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

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

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

Expand All @@ -101,8 +95,6 @@ def __init__(self, hs):

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

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

Expand Down

0 comments on commit a61dd40

Please sign in to comment.