parent
21180e2fd4
commit
b1e3519353
|
@ -0,0 +1,52 @@
|
||||||
|
<?php
|
||||||
|
/* Icinga Web 2 | (c) 2013-2015 Icinga Development Team | GPLv2+ */
|
||||||
|
|
||||||
|
namespace Icinga\Controllers;
|
||||||
|
|
||||||
|
use Icinga\Web\Controller;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Navigation configuration
|
||||||
|
*/
|
||||||
|
class NavigationController extends Controller
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Show the current user a list of his/her navigation items
|
||||||
|
*/
|
||||||
|
public function indexAction()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* List all shared navigation items
|
||||||
|
*/
|
||||||
|
public function sharedAction()
|
||||||
|
{
|
||||||
|
$this->assertPermission('config/application/navigation');
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Add a navigation item
|
||||||
|
*/
|
||||||
|
public function addAction()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Edit a navigation item
|
||||||
|
*/
|
||||||
|
public function editAction()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Remove a navigation item
|
||||||
|
*/
|
||||||
|
public function removeAction()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
|
@ -255,29 +255,35 @@ class Web extends EmbeddedWeb
|
||||||
'permission' => 'config/application/*',
|
'permission' => 'config/application/*',
|
||||||
'priority' => 810
|
'priority' => 810
|
||||||
),
|
),
|
||||||
|
'navigation' => array(
|
||||||
|
'label' => t('Shared Navigation'),
|
||||||
|
'url' => 'navigation/shared',
|
||||||
|
'permission' => 'config/application/navigation',
|
||||||
|
'priority' => 820,
|
||||||
|
),
|
||||||
'authentication' => array(
|
'authentication' => array(
|
||||||
'label' => t('Authentication'),
|
'label' => t('Authentication'),
|
||||||
'url' => 'config/userbackend',
|
'url' => 'config/userbackend',
|
||||||
'permission' => 'config/authentication/*',
|
'permission' => 'config/authentication/*',
|
||||||
'priority' => 820
|
'priority' => 830
|
||||||
),
|
),
|
||||||
'roles' => array(
|
'roles' => array(
|
||||||
'label' => t('Roles'),
|
'label' => t('Roles'),
|
||||||
'url' => 'role/list',
|
'url' => 'role/list',
|
||||||
'permission' => 'config/authentication/roles/show',
|
'permission' => 'config/authentication/roles/show',
|
||||||
'priority' => 830
|
'priority' => 840
|
||||||
),
|
),
|
||||||
'users' => array(
|
'users' => array(
|
||||||
'label' => t('Users'),
|
'label' => t('Users'),
|
||||||
'url' => 'user/list',
|
'url' => 'user/list',
|
||||||
'permission' => 'config/authentication/users/show',
|
'permission' => 'config/authentication/users/show',
|
||||||
'priority' => 840
|
'priority' => 850
|
||||||
),
|
),
|
||||||
'groups' => array(
|
'groups' => array(
|
||||||
'label' => t('Usergroups'),
|
'label' => t('Usergroups'),
|
||||||
'url' => 'group/list',
|
'url' => 'group/list',
|
||||||
'permission' => 'config/authentication/groups/show',
|
'permission' => 'config/authentication/groups/show',
|
||||||
'priority' => 850
|
'priority' => 860
|
||||||
),
|
),
|
||||||
'modules' => array(
|
'modules' => array(
|
||||||
'label' => t('Modules'),
|
'label' => t('Modules'),
|
||||||
|
@ -297,6 +303,11 @@ class Web extends EmbeddedWeb
|
||||||
'url' => 'preference',
|
'url' => 'preference',
|
||||||
'priority' => 910
|
'priority' => 910
|
||||||
),
|
),
|
||||||
|
'navigation' => array(
|
||||||
|
'label' => t('Navigation'),
|
||||||
|
'url' => 'navigation',
|
||||||
|
'priority' => 920
|
||||||
|
),
|
||||||
'logout' => array(
|
'logout' => array(
|
||||||
'label' => t('Logout'),
|
'label' => t('Logout'),
|
||||||
'url' => 'authentication/logout',
|
'url' => 'authentication/logout',
|
||||||
|
|
Loading…
Reference in New Issue