mirror of
https://github.com/element-hq/synapse.git
synced 2024-11-25 19:15:51 +03:00
SYN-48: Fix typo. Get the whois for requested user rather tahan the requester
This commit is contained in:
parent
3ccb17ce59
commit
1132663cc7
1 changed files with 1 additions and 1 deletions
|
@ -38,7 +38,7 @@ class WhoisRestServlet(RestServlet):
|
||||||
if not target_user.is_mine:
|
if not target_user.is_mine:
|
||||||
raise SynapseError(400, "Can only whois a local user")
|
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))
|
defer.returnValue((200, ret))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue