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:
parent
f6e9551235
commit
195fe6f04b
|
@ -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 {
|
||||
|
|
|
@ -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'
|
||||
);
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue