From 1ae3061151891c94850346d938657d0316d17c4e Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Tue, 22 Jun 2010 19:04:10 +0100 Subject: mod_adhoc: Update for new is_admin usage --- plugins/adhoc/mod_adhoc.lua | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'plugins/adhoc') diff --git a/plugins/adhoc/mod_adhoc.lua b/plugins/adhoc/mod_adhoc.lua index 6f91a61b..41362d81 100644 --- a/plugins/adhoc/mod_adhoc.lua +++ b/plugins/adhoc/mod_adhoc.lua @@ -15,9 +15,7 @@ module:add_feature(xmlns_cmd); module:hook("iq/host/"..xmlns_disco.."#items:query", function (event) local origin, stanza = event.origin, event.stanza; - -- TODO: Is this correct, or should is_admin be changed? - local privileged = is_admin(stanza.attr.from) - or is_admin(stanza.attr.from, stanza.attr.to); + local privileged = is_admin(stanza.attr.from, stanza.attr.to); if stanza.attr.type == "get" and stanza.tags[1].attr.node and stanza.tags[1].attr.node == xmlns_cmd then reply = st.reply(stanza); -- cgit v1.2.3