summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
Diffstat (limited to 'synapse')
-rw-r--r--synapse/rest/admin.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/rest/admin.py b/synapse/rest/admin.py
index 97eb1954e0..ed9b484623 100644
--- a/synapse/rest/admin.py
+++ b/synapse/rest/admin.py
@@ -38,7 +38,7 @@ class WhoisRestServlet(RestServlet):
         if not target_user.is_mine:
             raise SynapseError(400, "Can only whois a local user")
 
-        ret = yield self.handlers.admin_handler.get_whois(auth_user)
+        ret = yield self.handlers.admin_handler.get_whois(target_user)
 
         defer.returnValue((200, ret))