icingaweb2-module-director/application/controllers/ServicesController.php

25 lines
565 B
PHP
Raw Normal View History

<?php
2015-10-20 22:34:04 +02:00
namespace Icinga\Module\Director\Controllers;
use Icinga\Module\Director\Web\Controller\ObjectsController;
2015-10-20 22:34:04 +02:00
class ServicesController extends ObjectsController
{
public function init()
{
parent::init();
$this->view->tabs->remove('objects');
}
public function indexAction()
{
$r = $this->getRequest();
if ($r->getActionName() !== 'templates' && ! $this->getRequest()->isApiRequest()) {
$this->redirectNow('director/services/templates');
}
return parent::indexAction();
}
}