From 201e2f136d9250d8606bc4942ec42de844041356 Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Fri, 31 Jan 2020 16:01:08 +0100 Subject: [PATCH] ScheduleServiceCheckCommandForm: Only ignore services if rescheduling is restricted --- .../forms/Command/Object/ScheduleServiceCheckCommandForm.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/monitoring/application/forms/Command/Object/ScheduleServiceCheckCommandForm.php b/modules/monitoring/application/forms/Command/Object/ScheduleServiceCheckCommandForm.php index bcac4e281..f65aea84f 100644 --- a/modules/monitoring/application/forms/Command/Object/ScheduleServiceCheckCommandForm.php +++ b/modules/monitoring/application/forms/Command/Object/ScheduleServiceCheckCommandForm.php @@ -92,7 +92,9 @@ class ScheduleServiceCheckCommandForm extends ObjectsCommandForm { foreach ($this->objects as $object) { /** @var \Icinga\Module\Monitoring\Object\Service $object */ - if (! $object->active_checks_enabled) { + if (! $object->active_checks_enabled + && ! $this->Auth()->hasPermission('monitoring/command/schedule-check') + ) { continue; }