Skip to content

Commit

Permalink
Security: Rename system/config/roles to config/application/roles
Browse files Browse the repository at this point in the history
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
  • Loading branch information
lippserd committed Mar 12, 2015
1 parent 08abbda commit f6e9551
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion application/controllers/ConfigController.php
Expand Up @@ -61,7 +61,7 @@ public function init()
));
$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'
Expand Down
2 changes: 1 addition & 1 deletion application/controllers/RolesController.php
Expand Up @@ -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')) {
Expand Down
2 changes: 1 addition & 1 deletion application/forms/Security/RoleForm.php
Expand Up @@ -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'
);

/**
Expand Down

0 comments on commit f6e9551

Please sign in to comment.