Security: Rename system/config/roles to config/application/roles
Module config permission and application config permission have to be separeted. Application config related permissions will be added beneath config/application and module related config permissions will be added beneath config/modules. refs #8720
This commit is contained in:
parent
08abbda152
commit
f6e9551235
|
@ -61,7 +61,7 @@ class ConfigController extends ActionController
|
|||
));
|
||||
$allowedActions[] = 'resource';
|
||||
}
|
||||
if ($auth->hasPermission('system/config/roles')) {
|
||||
if ($auth->hasPermission('config/application/roles')) {
|
||||
$tabs->add('roles', array(
|
||||
'title' => $this->translate(
|
||||
'Configure roles to permit or restrict users and groups accessing Icinga Web 2'
|
||||
|
|
|
@ -20,7 +20,7 @@ class RolesController extends ActionController
|
|||
*/
|
||||
public function init()
|
||||
{
|
||||
$this->assertPermission('system/config/roles');
|
||||
$this->assertPermission('config/application/roles');
|
||||
$tabs = $this->getTabs();
|
||||
$auth = $this->Auth();
|
||||
if ($auth->hasPermission('config/application/general')) {
|
||||
|
|
|
@ -27,7 +27,7 @@ class RoleForm extends ConfigForm
|
|||
'config/application/authentication' => 'config/application/authentication',
|
||||
'system/config/modules' => 'system/config/modules',
|
||||
'config/application/resources' => 'config/application/resources',
|
||||
'system/config/roles' => 'system/config/roles'
|
||||
'config/application/roles' => 'config/application/roles'
|
||||
);
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue