aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--plugins/adhoc/mod_adhoc.lua4
1 files changed, 1 insertions, 3 deletions
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);