summaryrefslogtreecommitdiff
path: root/modules/m_xmlrpc_main.cpp
diff options
context:
space:
mode:
authorTim Gunter <tim@vanillaforums.com>2017-07-28 09:08:40 -0400
committerAdam <adam@sigterm.info>2017-07-28 09:08:40 -0400
commit23e59d9f2c69c26f8e5c0f7c5255731fe29e32a2 (patch)
treed1eeed7b6b9edc7c7a024d4596ef4902bf3b0894 /modules/m_xmlrpc_main.cpp
parent3cb9e0b97c15e2d997d519b4bfc1821252c2384d (diff)
Allow calls to XMLRPC to impersonate supplied user, if online
Diffstat (limited to 'modules/m_xmlrpc_main.cpp')
-rw-r--r--modules/m_xmlrpc_main.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/m_xmlrpc_main.cpp b/modules/m_xmlrpc_main.cpp
index 3969cab59..57b599ce4 100644
--- a/modules/m_xmlrpc_main.cpp
+++ b/modules/m_xmlrpc_main.cpp
@@ -108,7 +108,8 @@ class MyXMLRPCEvent : public XMLRPCEvent
}
reply(out);
- CommandSource source(user, NULL, na ? *na->nc : NULL, &reply, bi);
+ User *u = User::Find(user, true);
+ CommandSource source(user, u, na ? *na->nc : NULL, &reply, bi);
Command::Run(source, command);
if (!out.empty())