From 146ea971c433a484d1a0675f6ada3d976729d241 Mon Sep 17 00:00:00 2001 From: Eric Lippmann Date: Tue, 25 Aug 2015 09:20:42 +0200 Subject: [PATCH] monitoring/API: Require a filter when removing service downtimes refs #9606 --- .../monitoring/application/controllers/ActionsController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/monitoring/application/controllers/ActionsController.php b/modules/monitoring/application/controllers/ActionsController.php index b07a71020..21a7c3e37 100644 --- a/modules/monitoring/application/controllers/ActionsController.php +++ b/modules/monitoring/application/controllers/ActionsController.php @@ -96,12 +96,12 @@ class Monitoring_ActionsController extends Controller */ public function removeServiceDowntimeAction() { - // @TODO(el): Require a filter $downtimes = $this->backend ->select() ->from('downtime', array('host_name', 'service_description', 'id' => 'downtime_internal_id')) ->where('object_type', 'service') ->applyFilter($this->getRestriction('monitoring/filter/objects')) + ->setRequiresFilter(true) ->handleRequest($this->getRequest()) ->fetchAll(); if (empty($downtimes)) {