From b7afec8f3ced67c5c2d617c7f503d93423e13015 Mon Sep 17 00:00:00 2001 From: Eric Lippmann Date: Fri, 5 Jun 2015 12:43:24 +0200 Subject: [PATCH] monitoring: Restrict the tactical overview refs #9009 --- .../application/controllers/TacticalController.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/modules/monitoring/application/controllers/TacticalController.php b/modules/monitoring/application/controllers/TacticalController.php index d9da6d3d5..95440a309 100644 --- a/modules/monitoring/application/controllers/TacticalController.php +++ b/modules/monitoring/application/controllers/TacticalController.php @@ -20,8 +20,7 @@ class Monitoring_TacticalController extends MonitoringController 'url' => Url::fromRequest() ) )->extend(new DashboardAction())->activate('tactical_overview'); - - $this->view->statusSummary = $this->backend->select()->from( + $stats = $this->backend->select()->from( 'statusSummary', array( 'hosts_up', @@ -79,6 +78,8 @@ class Monitoring_TacticalController extends MonitoringController 'hosts_flapping', 'services_flapping' ) - )->getQuery()->fetchRow(); + ); + $this->applyRestriction('monitoring/filter/objects', $stats); + $this->view->statusSummary = $stats->fetchRow(); } }