ScheduleHostCheckCommandForm: Only ignore hosts if rescheduling is restricted

This commit is contained in:
Johannes Meyer 2020-01-31 15:59:54 +01:00
parent fd97e8b056
commit 6d6e235e5c
1 changed files with 3 additions and 1 deletions

View File

@ -45,7 +45,9 @@ class ScheduleHostCheckCommandForm extends ScheduleServiceCheckCommandForm
{
foreach ($this->objects as $object) {
/** @var \Icinga\Module\Monitoring\Object\Host $object */
if (! $object->active_checks_enabled) {
if (! $object->active_checks_enabled
&& ! $this->Auth()->hasPermission('monitoring/command/schedule-check')
) {
continue;
}