parent
9fb3dcabea
commit
64a4dc67bc
application/controllers
|
@ -39,28 +39,34 @@ class ConfigController extends ActionController
|
||||||
$allowedActions = array();
|
$allowedActions = array();
|
||||||
if ($auth->hasPermission('system/config/application')) {
|
if ($auth->hasPermission('system/config/application')) {
|
||||||
$tabs->add('application', array(
|
$tabs->add('application', array(
|
||||||
'title' => $this->translate('Application'),
|
'title' => $this->translate('Adjust the general configuration of Icinga Web 2'),
|
||||||
|
'label' => $this->translate('Application'),
|
||||||
'url' => 'config/application'
|
'url' => 'config/application'
|
||||||
));
|
));
|
||||||
$allowedActions[] = 'application';
|
$allowedActions[] = 'application';
|
||||||
}
|
}
|
||||||
if ($auth->hasPermission('system/config/authentication')) {
|
if ($auth->hasPermission('system/config/authentication')) {
|
||||||
$tabs->add('authentication', array(
|
$tabs->add('authentication', array(
|
||||||
'title' => $this->translate('Authentication'),
|
'title' => $this->translate('Configure how users authenticate with and log into Icinga Web 2'),
|
||||||
|
'label' => $this->translate('Authentication'),
|
||||||
'url' => 'config/authentication'
|
'url' => 'config/authentication'
|
||||||
));
|
));
|
||||||
$allowedActions[] = 'authentication';
|
$allowedActions[] = 'authentication';
|
||||||
}
|
}
|
||||||
if ($auth->hasPermission('system/config/resources')) {
|
if ($auth->hasPermission('system/config/resources')) {
|
||||||
$tabs->add('resource', array(
|
$tabs->add('resource', array(
|
||||||
'title' => $this->translate('Resources'),
|
'title' => $this->translate('Configure which resources are being utilized by Icinga Web 2'),
|
||||||
|
'label' => $this->translate('Resources'),
|
||||||
'url' => 'config/resource'
|
'url' => 'config/resource'
|
||||||
));
|
));
|
||||||
$allowedActions[] = 'resource';
|
$allowedActions[] = 'resource';
|
||||||
}
|
}
|
||||||
if ($auth->hasPermission('system/config/roles')) {
|
if ($auth->hasPermission('system/config/roles')) {
|
||||||
$tabs->add('roles', array(
|
$tabs->add('roles', array(
|
||||||
'title' => $this->translate('Roles'),
|
'title' => $this->translate(
|
||||||
|
'Configure roles to permit or restrict users and groups accessing Icinga Web 2'
|
||||||
|
),
|
||||||
|
'label' => $this->translate('Roles'),
|
||||||
'url' => 'roles'
|
'url' => 'roles'
|
||||||
));
|
));
|
||||||
$allowedActions[] = 'roles';
|
$allowedActions[] = 'roles';
|
||||||
|
|
|
@ -25,8 +25,9 @@ class PreferenceController extends BasePreferenceController
|
||||||
return array(
|
return array(
|
||||||
'preferences' => new Tab(
|
'preferences' => new Tab(
|
||||||
array(
|
array(
|
||||||
'title' => t('Preferences'),
|
'title' => t('Adjust the preferences of Icinga Web 2 according to your needs'),
|
||||||
'url' => Url::fromPath('/preference')
|
'label' => t('Preferences'),
|
||||||
|
'url' => Url::fromPath('/preference')
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
|
@ -25,24 +25,30 @@ class RolesController extends ActionController
|
||||||
$auth = $this->Auth();
|
$auth = $this->Auth();
|
||||||
if ($auth->hasPermission('system/config/application')) {
|
if ($auth->hasPermission('system/config/application')) {
|
||||||
$tabs->add('application', array(
|
$tabs->add('application', array(
|
||||||
'title' => $this->translate('Application'),
|
'title' => $this->translate('Adjust the general configuration of Icinga Web 2'),
|
||||||
|
'label' => $this->translate('Application'),
|
||||||
'url' => 'config'
|
'url' => 'config'
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
if ($auth->hasPermission('system/config/authentication')) {
|
if ($auth->hasPermission('system/config/authentication')) {
|
||||||
$tabs->add('authentication', array(
|
$tabs->add('authentication', array(
|
||||||
'title' => $this->translate('Authentication'),
|
'title' => $this->translate('Configure how users authenticate with and log into Icinga Web 2'),
|
||||||
|
'label' => $this->translate('Authentication'),
|
||||||
'url' => 'config/authentication'
|
'url' => 'config/authentication'
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
if ($auth->hasPermission('system/config/resources')) {
|
if ($auth->hasPermission('system/config/resources')) {
|
||||||
$tabs->add('resource', array(
|
$tabs->add('resource', array(
|
||||||
'title' => $this->translate('Resources'),
|
'title' => $this->translate('Configure which resources are being utilized by Icinga Web 2'),
|
||||||
|
'label' => $this->translate('Resources'),
|
||||||
'url' => 'config/resource'
|
'url' => 'config/resource'
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
$tabs->add('roles', array(
|
$tabs->add('roles', array(
|
||||||
'title' => $this->translate('Roles'),
|
'title' => $this->translate(
|
||||||
|
'Configure roles to permit or restrict users and groups accessing Icinga Web 2'
|
||||||
|
),
|
||||||
|
'label' => $this->translate('Roles'),
|
||||||
'url' => 'roles'
|
'url' => 'roles'
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue