Security: Rename system/config/modules to config/modules

Module config permission and application config permission have to be separeted.
Application config related permissions were added beneath config/application and module
related config permissions will be config/modules for now.

refs #8720
This commit is contained in:
Eric Lippmann 2015-03-12 14:53:20 +01:00
parent f6e9551235
commit 195fe6f04b
2 changed files with 4 additions and 4 deletions

View File

@ -159,7 +159,7 @@ class ConfigController extends ActionController
*/
public function moduleenableAction()
{
$this->assertPermission('system/config/modules');
$this->assertPermission('config/modules');
$module = $this->getParam('name');
$manager = Icinga::app()->getModuleManager();
try {
@ -179,7 +179,7 @@ class ConfigController extends ActionController
*/
public function moduledisableAction()
{
$this->assertPermission('system/config/modules');
$this->assertPermission('config/modules');
$module = $this->getParam('name');
$manager = Icinga::app()->getModuleManager();
try {

View File

@ -25,9 +25,9 @@ class RoleForm extends ConfigForm
'system/config/*' => 'system/config/*',
'config/application/general' => 'config/application/general',
'config/application/authentication' => 'config/application/authentication',
'system/config/modules' => 'system/config/modules',
'config/application/resources' => 'config/application/resources',
'config/application/roles' => 'config/application/roles'
'config/application/roles' => 'config/application/roles',
'config/modules' => 'config/modules'
);
/**