mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-21 12:54:26 +02:00
monitoring/API: Require a filter when removing service downtimes
refs #9606
This commit is contained in:
parent
2c393afbeb
commit
146ea971c4
@ -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)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user