HostsController: remove beta restrictions

The table takes care of this right now
This commit is contained in:
Thomas Gelf 2017-06-16 16:25:34 +02:00
parent 311629bbd1
commit 6e57baf273

View File

@ -6,8 +6,6 @@ use Icinga\Data\Filter\Filter;
use Icinga\Data\Filter\FilterChain; use Icinga\Data\Filter\FilterChain;
use Icinga\Data\Filter\FilterExpression; use Icinga\Data\Filter\FilterExpression;
use Icinga\Module\Director\Objects\IcingaHost; use Icinga\Module\Director\Objects\IcingaHost;
use Icinga\Module\Director\Restriction\BetaHostgroupRestriction;
use Icinga\Module\Director\Tables\IcingaHostTable;
use Icinga\Module\Director\Web\Controller\ObjectsController; use Icinga\Module\Director\Web\Controller\ObjectsController;
class HostsController extends ObjectsController class HostsController extends ObjectsController
@ -78,14 +76,4 @@ class HostsController extends ObjectsController
$this->setViewScript('objects/form'); $this->setViewScript('objects/form');
} }
/**
* @param IcingaHostTable $table
*/
protected function applyTableFilters($table)
{
$table->addObjectRestriction(
new BetaHostgroupRestriction($this->db(), $this->Auth())
);
}
} }