summary refs log tree commit diff
path: root/synapse/rest
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2014-09-29 15:04:04 +0100
committerErik Johnston <erik@matrix.org>2014-09-29 15:04:04 +0100
commit1132663cc7d2b168b32b0b48f65bbdf161d090f4 (patch)
tree2266323488cc5775ff13ef2faa2cfee7b1683ec4 /synapse/rest
parentSYN-48: Implement WHOIS rest servlet (diff)
downloadsynapse-1132663cc7d2b168b32b0b48f65bbdf161d090f4.tar.xz
SYN-48: Fix typo. Get the whois for requested user rather tahan the requester
Diffstat (limited to 'synapse/rest')
-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))