From 31d1d44da5dee92911f858e96027b2880d8cad51 Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Thu, 22 Jun 2017 00:13:09 +0200 Subject: [PATCH] HostController: restrictions are no longer beta --- application/controllers/HostController.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/application/controllers/HostController.php b/application/controllers/HostController.php index 604bf994..60543a91 100644 --- a/application/controllers/HostController.php +++ b/application/controllers/HostController.php @@ -11,7 +11,7 @@ use Icinga\Module\Director\Objects\IcingaHost; use Icinga\Module\Director\Objects\IcingaObject; use Icinga\Module\Director\Objects\IcingaService; use Icinga\Module\Director\Objects\IcingaServiceSet; -use Icinga\Module\Director\Restriction\BetaHostgroupRestriction; +use Icinga\Module\Director\Restriction\HostgroupRestriction; use Icinga\Module\Director\Util; use Icinga\Module\Director\Web\Controller\ObjectController; use Icinga\Web\Url; @@ -58,18 +58,19 @@ class HostController extends ObjectController protected function getHostgroupRestriction() { - return new BetaHostgroupRestriction($this->db(), $this->Auth()); + return new HostgroupRestriction($this->db(), $this->Auth()); } /** * @param IcingaHost $object * @return bool */ - protected function allowsObject(IcingaObject $object) +/* protected function allowsObject(IcingaObject $object) { return $this->getHostgroupRestriction()->allowsHost($object); } +*/ public function editAction() { parent::editAction();