summary refs log tree commit diff
path: root/synapse/rest/client/v1/admin.py
diff options
context:
space:
mode:
authorErik Johnston <erikj@jki.re>2018-06-25 14:37:01 +0100
committerGitHub <noreply@github.com>2018-06-25 14:37:01 +0100
commit33fdcfa957e64ec43bd866d09e12811140f75dcf (patch)
tree15dc74b7c90fa61cd53dff05eb19676a7bd5d935 /synapse/rest/client/v1/admin.py
parentRemove all global reactor imports & pass it around explicitly (#3424) (diff)
parentAdd UserErasureWorkerStore to workers (diff)
downloadsynapse-33fdcfa957e64ec43bd866d09e12811140f75dcf.tar.xz
Merge pull request #3441 from matrix-org/erikj/redo_erasure
Fix user erasure and re-enable
Diffstat (limited to 'synapse/rest/client/v1/admin.py')
-rw-r--r--synapse/rest/client/v1/admin.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/synapse/rest/client/v1/admin.py b/synapse/rest/client/v1/admin.py
index b8665a45eb..ddaedb2a8c 100644
--- a/synapse/rest/client/v1/admin.py
+++ b/synapse/rest/client/v1/admin.py
@@ -254,7 +254,9 @@ class DeactivateAccountRestServlet(ClientV1RestServlet):
         if not is_admin:
             raise AuthError(403, "You are not a server admin")
 
-        yield self._deactivate_account_handler.deactivate_account(target_user_id)
+        yield self._deactivate_account_handler.deactivate_account(
+            target_user_id, False,
+        )
         defer.returnValue((200, {}))