# HG changeset patch # User Florian Zeitz # Date 1307059291 -7200 # Node ID b991ffa0f2c55ab97bcd6dd2d946243c5bb1dd54 # Parent da4844ab289f6ae3512dd02f0c21cbc8123788bf mod_admin_adhoc: Only allow global admins to shut the server down diff -r da4844ab289f -r b991ffa0f2c5 plugins/mod_admin_adhoc.lua --- a/plugins/mod_admin_adhoc.lua Fri Jun 03 00:58:09 2011 +0100 +++ b/plugins/mod_admin_adhoc.lua Fri Jun 03 02:01:31 2011 +0200 @@ -600,7 +600,7 @@ 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);