summary refs log tree commit diff
path: root/synapse/rest/client/v2_alpha/sendtodevice.py
diff options
context:
space:
mode:
authorRichard van der Hoff <richard@matrix.org>2016-11-25 15:26:34 +0000
committerRichard van der Hoff <richard@matrix.org>2016-11-25 15:26:34 +0000
commitf62b69e32a5b9a06ee05657730cee7741700c4f6 (patch)
tree0ba1fffe11463d189fe2b6d94d701453d5772fa9 /synapse/rest/client/v2_alpha/sendtodevice.py
parentGive guest users a device_id (diff)
downloadsynapse-f62b69e32a5b9a06ee05657730cee7741700c4f6.tar.xz
Allow guest access to endpoints for E2E
Expose /devices, /keys, and /sendToDevice to guest users, so that they can use
E2E.
Diffstat (limited to 'synapse/rest/client/v2_alpha/sendtodevice.py')
-rw-r--r--synapse/rest/client/v2_alpha/sendtodevice.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/rest/client/v2_alpha/sendtodevice.py b/synapse/rest/client/v2_alpha/sendtodevice.py
index ac660669f3..d607bd2970 100644
--- a/synapse/rest/client/v2_alpha/sendtodevice.py
+++ b/synapse/rest/client/v2_alpha/sendtodevice.py
@@ -50,7 +50,7 @@ class SendToDeviceRestServlet(servlet.RestServlet):
 
     @defer.inlineCallbacks
     def _put(self, request, message_type, txn_id):
-        requester = yield self.auth.get_user_by_req(request)
+        requester = yield self.auth.get_user_by_req(request, allow_guest=True)
 
         content = parse_json_object_from_request(request)