ScheduleHostCheckCommandForm: Only ignore hosts if rescheduling is restricted
This commit is contained in:
parent
fd97e8b056
commit
6d6e235e5c
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue