summary refs log tree commit diff
path: root/synapse/rest/client
diff options
context:
space:
mode:
authorMatthew Hodgson <matthew@matrix.org>2017-03-15 12:22:18 +0000
committerMatthew Hodgson <matthew@matrix.org>2017-03-15 12:22:18 +0000
commite0ff66251f71cb46aea30a187edc1dc027760b9e (patch)
treeb3e4f4f880c78734bb185d710baae36b0ddf47e4 /synapse/rest/client
parentMerge pull request #2008 from matrix-org/erikj/notifier_stats (diff)
downloadsynapse-e0ff66251f71cb46aea30a187edc1dc027760b9e.tar.xz
add setting (on by default) to support TURN for guests
Diffstat (limited to 'synapse/rest/client')
-rw-r--r--synapse/rest/client/v1/voip.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/synapse/rest/client/v1/voip.py b/synapse/rest/client/v1/voip.py
index 03141c623c..c43b30b73a 100644
--- a/synapse/rest/client/v1/voip.py
+++ b/synapse/rest/client/v1/voip.py
@@ -28,7 +28,10 @@ class VoipRestServlet(ClientV1RestServlet):
 
     @defer.inlineCallbacks
     def on_GET(self, request):
-        requester = yield self.auth.get_user_by_req(request)
+        requester = yield self.auth.get_user_by_req(
+            request,
+            self.hs.config.turn_allow_guests
+        )
 
         turnUris = self.hs.config.turn_uris
         turnSecret = self.hs.config.turn_shared_secret