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();