Diff

plugins/mod_uptime.lua @ 10565:421b2f8369fd

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.
author Kim Alvefur <zash@zash.se>
date Fri, 20 Dec 2019 22:47:34 +0100
parent 9572:867e40b82409
child 10749:abbdf72b0710
line wrap: on
line diff
--- a/plugins/mod_uptime.lua	Tue Dec 24 00:49:43 2019 +0100
+++ b/plugins/mod_uptime.lua	Fri Dec 20 22:47:34 2019 +0100
@@ -42,6 +42,6 @@
 	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);