diff options
author | Richard van der Hoff <richard@matrix.org> | 2016-11-25 15:26:34 +0000 |
---|---|---|
committer | Richard van der Hoff <richard@matrix.org> | 2016-11-25 15:26:34 +0000 |
commit | f62b69e32a5b9a06ee05657730cee7741700c4f6 (patch) | |
tree | 0ba1fffe11463d189fe2b6d94d701453d5772fa9 /synapse/rest/client/v2_alpha/sendtodevice.py | |
parent | Give guest users a device_id (diff) | |
download | synapse-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.py | 2 |
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) |