summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--synapse/rest/admin/users.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/rest/admin/users.py b/synapse/rest/admin/users.py
index 8115f2445e..b0fddb6898 100644
--- a/synapse/rest/admin/users.py
+++ b/synapse/rest/admin/users.py
@@ -69,8 +69,8 @@ class UserAdminServlet(RestServlet):
         if target_user == auth_user and not set_admin_to:
             raise SynapseError(400, "You may not demote yourself.")
 
-        ret = yield self.handlers.admin_handler.set_user_server_admin(
+        yield self.handlers.admin_handler.set_user_server_admin(
             target_user, set_admin_to
         )
 
-        return (200, ret)
+        return (200, {})