summary refs log tree commit diff
path: root/synapse/rest/client/v1/admin.py
diff options
context:
space:
mode:
authorRichard van der Hoff <richard@matrix.org>2018-06-12 09:43:59 +0100
committerRichard van der Hoff <richard@matrix.org>2018-06-12 09:53:18 +0100
commitf1023ebf4bfff8f3c3b51daeaeb1ba05869ab703 (patch)
treebf6a33ed89a5782de6b38b68e8daa75144d2f785 /synapse/rest/client/v1/admin.py
parentUserErasureStore (diff)
downloadsynapse-f1023ebf4bfff8f3c3b51daeaeb1ba05869ab703.tar.xz
mark accounts as erased when requested
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, {}))