ScheduleServiceCheckCommandForm: Only ignore services if rescheduling is restricted

This commit is contained in:
Johannes Meyer 2020-01-31 16:01:08 +01:00
parent 6d6e235e5c
commit 201e2f136d
1 changed files with 3 additions and 1 deletions

View File

@ -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;
}