diff options
author | Kim Alvefur <zash@zash.se> | 2019-12-20 22:47:34 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2019-12-20 22:47:34 +0100 |
commit | e10171d44d362918cc0d4886e37018cd14843d0d (patch) | |
tree | 10b79de6881f3814f3064bb278f76959aa9eb9c1 /plugins/adhoc/mod_adhoc.lua | |
parent | 96c1406bcdea0d0e98b70fb968d5d315790cc391 (diff) | |
download | prosody-e10171d44d362918cc0d4886e37018cd14843d0d.tar.gz prosody-e10171d44d362918cc0d4886e37018cd14843d0d.zip |
mod_adhoc: Improve permission setting (fix #1482) BC
Rename 'user' permission mode to 'any' for clarity, too easily mistaken
for what the 'local_user' setting does.
It is also removed as a default and made a required argument.
Diffstat (limited to 'plugins/adhoc/mod_adhoc.lua')
-rw-r--r-- | plugins/adhoc/mod_adhoc.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/adhoc/mod_adhoc.lua b/plugins/adhoc/mod_adhoc.lua index f6553773..188d05e8 100644 --- a/plugins/adhoc/mod_adhoc.lua +++ b/plugins/adhoc/mod_adhoc.lua @@ -26,7 +26,7 @@ module:hook("host-disco-info-node", function (event) if (command.permission == "admin" and privileged) or (command.permission == "global_admin" and global_admin) or (command.permission == "local_user" and hostname == module.host) - or (command.permission == "user") then + or (command.permission == "any") then reply:tag("identity", { name = command.name, category = "automation", type = "command-node" }):up(); reply:tag("feature", { var = xmlns_cmd }):up(); @@ -57,7 +57,7 @@ module:hook("host-disco-items-node", function (event) if (command.permission == "admin" and admin) or (command.permission == "global_admin" and global_admin) or (command.permission == "local_user" and hostname == module.host) - or (command.permission == "user") then + or (command.permission == "any") then reply:tag("item", { name = command.name, node = node, jid = module:get_host() }); reply:up(); |