monitoring: Apply restriction on hosts before calling filterQuery which also handles format

refs #9965
This commit is contained in:
Eric Lippmann 2015-08-21 11:11:50 +02:00
parent fc28088dc0
commit 67bbc3ed6a

View File

@ -73,8 +73,8 @@ class Monitoring_ListController extends Controller
'host_current_check_attempt', 'host_current_check_attempt',
'host_max_check_attempts' 'host_max_check_attempts'
), $this->addColumns())); ), $this->addColumns()));
$this->filterQuery($query);
$this->applyRestriction('monitoring/filter/objects', $query); $this->applyRestriction('monitoring/filter/objects', $query);
$this->filterQuery($query);
$this->view->hosts = $query; $this->view->hosts = $query;
$stats = $this->backend->select()->from('hoststatussummary', array( $stats = $this->backend->select()->from('hoststatussummary', array(
'hosts_total', 'hosts_total',