HostController: restrictions are no longer beta

This commit is contained in:
Thomas Gelf 2017-06-22 00:13:09 +02:00
parent 61b1e4b581
commit 31d1d44da5

View File

@ -11,7 +11,7 @@ use Icinga\Module\Director\Objects\IcingaHost;
use Icinga\Module\Director\Objects\IcingaObject; use Icinga\Module\Director\Objects\IcingaObject;
use Icinga\Module\Director\Objects\IcingaService; use Icinga\Module\Director\Objects\IcingaService;
use Icinga\Module\Director\Objects\IcingaServiceSet; 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\Util;
use Icinga\Module\Director\Web\Controller\ObjectController; use Icinga\Module\Director\Web\Controller\ObjectController;
use Icinga\Web\Url; use Icinga\Web\Url;
@ -58,18 +58,19 @@ class HostController extends ObjectController
protected function getHostgroupRestriction() protected function getHostgroupRestriction()
{ {
return new BetaHostgroupRestriction($this->db(), $this->Auth()); return new HostgroupRestriction($this->db(), $this->Auth());
} }
/** /**
* @param IcingaHost $object * @param IcingaHost $object
* @return bool * @return bool
*/ */
protected function allowsObject(IcingaObject $object) /* protected function allowsObject(IcingaObject $object)
{ {
return $this->getHostgroupRestriction()->allowsHost($object); return $this->getHostgroupRestriction()->allowsHost($object);
} }
*/
public function editAction() public function editAction()
{ {
parent::editAction(); parent::editAction();