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

32 lines
711 B
PHP
Raw Normal View History

2016-02-27 01:14:27 +01:00
<?php
namespace Icinga\Module\Director\Controllers;
use Icinga\Exception\NotFoundError;
use Icinga\Module\Director\Web\Controller\ObjectsController;
2016-02-27 01:14:27 +01:00
class NotificationsController extends ObjectsController
2016-02-27 01:14:27 +01:00
{
protected function addObjectsTabs()
{
$res = parent::addObjectsTabs();
$this->tabs()->remove('index');
return $res;
}
public function indexAction()
{
throw new NotFoundError('Not found');
}
protected function assertApplyRulePermission()
{
return $this->assertPermission('director/notifications');
}
protected function checkDirectorPermissions()
{
$this->assertPermission('director/notifications');
}
2016-02-27 01:14:27 +01:00
}