2016-02-27 01:14:27 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Icinga\Module\Director\Controllers;
|
|
|
|
|
2017-07-13 11:49:55 +02:00
|
|
|
use Icinga\Exception\NotFoundError;
|
2017-06-21 21:09:41 +02:00
|
|
|
use Icinga\Module\Director\Web\Controller\ObjectsController;
|
2016-02-27 01:14:27 +01:00
|
|
|
|
2017-06-21 21:09:41 +02:00
|
|
|
class NotificationsController extends ObjectsController
|
2016-02-27 01:14:27 +01:00
|
|
|
{
|
2017-07-13 11:49:55 +02:00
|
|
|
protected function addObjectsTabs()
|
|
|
|
{
|
|
|
|
$res = parent::addObjectsTabs();
|
|
|
|
$this->tabs()->remove('index');
|
|
|
|
return $res;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function indexAction()
|
|
|
|
{
|
|
|
|
throw new NotFoundError('Not found');
|
|
|
|
}
|
|
|
|
|
2017-07-14 11:20:11 +02:00
|
|
|
protected function assertApplyRulePermission()
|
|
|
|
{
|
|
|
|
return $this->assertPermission('director/notifications');
|
|
|
|
}
|
|
|
|
|
2016-11-03 16:06:18 +01:00
|
|
|
protected function checkDirectorPermissions()
|
|
|
|
{
|
|
|
|
$this->assertPermission('director/notifications');
|
|
|
|
}
|
2016-02-27 01:14:27 +01:00
|
|
|
}
|