aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Zeitz <florob@babelmonkeys.de>2011-06-03 02:01:31 +0200
committerFlorian Zeitz <florob@babelmonkeys.de>2011-06-03 02:01:31 +0200
commit31dfca95242a0536e44faabec0a27da4b9c87049 (patch)
tree3f839170a409f8d641d35d6987e78d9ba0f94c58
parent648ce900d7f396770747c864758c20c04c77d143 (diff)
downloadprosody-31dfca95242a0536e44faabec0a27da4b9c87049.tar.gz
prosody-31dfca95242a0536e44faabec0a27da4b9c87049.zip
mod_admin_adhoc: Only allow global admins to shut the server down
-rw-r--r--plugins/mod_admin_adhoc.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_admin_adhoc.lua b/plugins/mod_admin_adhoc.lua
index 8c82293f..d78c1aee 100644
--- a/plugins/mod_admin_adhoc.lua
+++ b/plugins/mod_admin_adhoc.lua
@@ -600,7 +600,7 @@ local get_online_users_desc = adhoc_new("Get List of Online Users", "http://jabb
local list_modules_desc = adhoc_new("List loaded modules", "http://prosody.im/protocol/modules#list", list_modules_handler, "admin");
local load_module_desc = adhoc_new("Load module", "http://prosody.im/protocol/modules#load", load_module_handler, "admin");
local reload_modules_desc = adhoc_new("Reload modules", "http://prosody.im/protocol/modules#reload", reload_modules_handler, "admin");
-local shut_down_service_desc = adhoc_new("Shut Down Service", "http://jabber.org/protocol/admin#shutdown", shut_down_service_handler, "admin");
+local shut_down_service_desc = adhoc_new("Shut Down Service", "http://jabber.org/protocol/admin#shutdown", shut_down_service_handler, "global_admin");
local unload_modules_desc = adhoc_new("Unload modules", "http://prosody.im/protocol/modules#unload", unload_modules_handler, "admin");
module:add_item("adhoc", add_user_desc);