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/*',
|
||||
'priority' => 810
|
||||
),
|
||||
'navigation' => array(
|
||||
'label' => t('Shared Navigation'),
|
||||
'url' => 'navigation/shared',
|
||||
'permission' => 'config/application/navigation',
|
||||
'priority' => 820,
|
||||
),
|
||||
'authentication' => array(
|
||||
'label' => t('Authentication'),
|
||||
'url' => 'config/userbackend',
|
||||
'permission' => 'config/authentication/*',
|
||||
'priority' => 820
|
||||
'priority' => 830
|
||||
),
|
||||
'roles' => array(
|
||||
'label' => t('Roles'),
|
||||
'url' => 'role/list',
|
||||
'permission' => 'config/authentication/roles/show',
|
||||
'priority' => 830
|
||||
'priority' => 840
|
||||
),
|
||||
'users' => array(
|
||||
'label' => t('Users'),
|
||||
'url' => 'user/list',
|
||||
'permission' => 'config/authentication/users/show',
|
||||
'priority' => 840
|
||||
'priority' => 850
|
||||
),
|
||||
'groups' => array(
|
||||
'label' => t('Usergroups'),
|
||||
'url' => 'group/list',
|
||||
'permission' => 'config/authentication/groups/show',
|
||||
'priority' => 850
|
||||
'priority' => 860
|
||||
),
|
||||
'modules' => array(
|
||||
'label' => t('Modules'),
|
||||
|
@ -297,6 +303,11 @@ class Web extends EmbeddedWeb
|
|||
'url' => 'preference',
|
||||
'priority' => 910
|
||||
),
|
||||
'navigation' => array(
|
||||
'label' => t('Navigation'),
|
||||
'url' => 'navigation',
|
||||
'priority' => 920
|
||||
),
|
||||
'logout' => array(
|
||||
'label' => t('Logout'),
|
||||
'url' => 'authentication/logout',
|
||||
|
|
Loading…
Reference in New Issue