From fe3de9458bb5dd356b995c6979bb7a27f2c4918e Mon Sep 17 00:00:00 2001 From: Eric Lippmann Date: Thu, 15 Nov 2018 17:23:40 +0100 Subject: [PATCH] Filter for contact name after adding restrictions refs #3549 --- modules/monitoring/application/controllers/ShowController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/monitoring/application/controllers/ShowController.php b/modules/monitoring/application/controllers/ShowController.php index 2c7bc6039..7e3965657 100644 --- a/modules/monitoring/application/controllers/ShowController.php +++ b/modules/monitoring/application/controllers/ShowController.php @@ -43,8 +43,8 @@ class ShowController extends Controller 'contact_notify_host_flapping', 'contact_notify_host_downtime', )); - $query->where('contact_name', $contactName); $this->applyRestriction('monitoring/filter/objects', $query); + $query->where('contact_name', $contactName); $contact = $query->getQuery()->fetchRow(); if ($contact) {