From aabdfec03ae3bfd0292e14c55c9195885c89dc51 Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Mon, 15 Jun 2015 13:48:13 +0200 Subject: [PATCH] ListController: Restrict the contacts view refs #9009 --- .../application/controllers/ListController.php | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/modules/monitoring/application/controllers/ListController.php b/modules/monitoring/application/controllers/ListController.php index 0576d6e24..e8508cb83 100644 --- a/modules/monitoring/application/controllers/ListController.php +++ b/modules/monitoring/application/controllers/ListController.php @@ -312,25 +312,14 @@ class Monitoring_ListController extends Controller $query = $this->backend->select()->from('contact', array( 'contact_name', - 'contact_id', 'contact_alias', 'contact_email', 'contact_pager', 'contact_notify_service_timeperiod', - 'contact_notify_service_recovery', - 'contact_notify_service_warning', - 'contact_notify_service_critical', - 'contact_notify_service_unknown', - 'contact_notify_service_flapping', - 'contact_notify_service_downtime', - 'contact_notify_host_timeperiod', - 'contact_notify_host_recovery', - 'contact_notify_host_down', - 'contact_notify_host_unreachable', - 'contact_notify_host_flapping', - 'contact_notify_host_downtime', + 'contact_notify_host_timeperiod' )); $this->filterQuery($query); + $this->applyRestriction('monitoring/filter/objects', $query); $this->view->contacts = $query; $this->setupLimitControl();