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/mod_uptime.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/mod_uptime.lua')
-rw-r--r-- | plugins/mod_uptime.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_uptime.lua b/plugins/mod_uptime.lua index ccd8e511..035f7e9b 100644 --- a/plugins/mod_uptime.lua +++ b/plugins/mod_uptime.lua @@ -42,6 +42,6 @@ function uptime_command_handler () return { info = uptime_text(), status = "completed" }; end -local descriptor = adhoc_new("Get uptime", "uptime", uptime_command_handler); +local descriptor = adhoc_new("Get uptime", "uptime", uptime_command_handler, "any"); module:provides("adhoc", descriptor); |