User-/GroupController: Create tabs as early as possible

fixes #9350
This commit is contained in:
Johannes Meyer 2015-06-03 08:54:56 +02:00
parent e7a875da26
commit dd7cbf4b69
2 changed files with 2 additions and 2 deletions

View File

@ -23,6 +23,7 @@ class GroupController extends AuthBackendController
public function listAction()
{
$this->assertPermission('config/authentication/groups/show');
$this->createListTabs()->activate('group/list');
$backendNames = array_map(
function ($b) { return $b->getName(); },
$this->loadUserGroupBackends('Icinga\Data\Selectable')
@ -60,7 +61,6 @@ class GroupController extends AuthBackendController
$this->view->groups = $query;
$this->view->backend = $backend;
$this->createListTabs()->activate('group/list');
$this->setupPaginationControl($query);
$this->setupLimitControl();

View File

@ -23,6 +23,7 @@ class UserController extends AuthBackendController
public function listAction()
{
$this->assertPermission('config/authentication/users/show');
$this->createListTabs()->activate('user/list');
$backendNames = array_map(
function ($b) { return $b->getName(); },
$this->loadUserBackends('Icinga\Data\Selectable')
@ -60,7 +61,6 @@ class UserController extends AuthBackendController
$this->view->users = $query;
$this->view->backend = $backend;
$this->createListTabs()->activate('user/list');
$this->setupPaginationControl($query);
$this->setupLimitControl();