summary refs log tree commit diff
path: root/synapse/rest/client/v1
diff options
context:
space:
mode:
authorMatthew Hodgson <matthew@matrix.org>2018-06-26 10:42:50 +0100
committerMatthew Hodgson <matthew@matrix.org>2018-06-26 10:42:50 +0100
commit9570aa82ebf0d8dc01c8094df232ce16e683c905 (patch)
treea28406464c3c74b8e05fc1470338812220bf477d /synapse/rest/client/v1
parentadd GDPR erase param to deactivate API (diff)
downloadsynapse-9570aa82ebf0d8dc01c8094df232ce16e683c905.tar.xz
update doc for deactivate API
Diffstat (limited to 'synapse/rest/client/v1')
-rw-r--r--synapse/rest/client/v1/admin.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/rest/client/v1/admin.py b/synapse/rest/client/v1/admin.py
index 3f231e6b29..8fb08dc526 100644
--- a/synapse/rest/client/v1/admin.py
+++ b/synapse/rest/client/v1/admin.py
@@ -249,7 +249,7 @@ class DeactivateAccountRestServlet(ClientV1RestServlet):
 
     @defer.inlineCallbacks
     def on_POST(self, request, target_user_id):
-        body = parse_json_object_from_request(request)
+        body = parse_json_object_from_request(request, allow_empty_body=True)
         erase = body.get("erase", False)
         if not isinstance(erase, bool):
             raise SynapseError(