mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-28 08:14:04 +02:00
HostController: restrictions are no longer beta
This commit is contained in:
parent
61b1e4b581
commit
31d1d44da5
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user