monitoring: Apply restrictions before filtering for multiple services

refs #9574
This commit is contained in:
Eric Lippmann 2015-08-04 15:30:07 +02:00
parent 10e50842b2
commit cdd13bc389
1 changed files with 2 additions and 2 deletions

View File

@ -27,10 +27,10 @@ class Monitoring_ServicesController extends Controller
public function init()
{
$serviceList = new ServiceList($this->backend);
$serviceList->setFilter(Filter::fromQueryString(
$this->applyRestriction('monitoring/filter/objects', $serviceList);
$serviceList->addFilter(Filter::fromQueryString(
(string) $this->params->without(array('service_problem', 'service_handled', 'view'))
));
$this->applyRestriction('monitoring/filter/objects', $serviceList);
$this->serviceList = $serviceList;
$this->view->listAllLink = Url::fromRequest()->setPath('monitoring/list/services');
$this->getTabs()->add(