Software /
code /
prosody
Changeset
4296:b991ffa0f2c5
mod_admin_adhoc: Only allow global admins to shut the server down
author | Florian Zeitz <florob@babelmonkeys.de> |
---|---|
date | Fri, 03 Jun 2011 02:01:31 +0200 |
parents | 4295:da4844ab289f |
children | 4300:cfa69c19b428 |
files | plugins/mod_admin_adhoc.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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);