From 2781b6946daa82b88b08cdd6ab3c6478f7c70aa1 Mon Sep 17 00:00:00 2001 From: Adam Date: Thu, 2 Jan 2014 11:44:18 -0500 Subject: Add an explicit privilege for os_config's modify --- modules/commands/os_config.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'modules') diff --git a/modules/commands/os_config.cpp b/modules/commands/os_config.cpp index 6dc932cf2..b286a3238 100644 --- a/modules/commands/os_config.cpp +++ b/modules/commands/os_config.cpp @@ -26,6 +26,12 @@ class CommandOSConfig : public Command if (what.equals_ci("MODIFY") && params.size() > 3) { + if (!source.HasPriv("operserv/config")) + { + source.Reply(ACCESS_DENIED); + return; + } + Configuration::Block *block = Config->GetBlock(params[1]); if (!block) block = Config->GetModule(params[1]); -- cgit