ScheduleServiceCheckCommandForm: Only ignore services if rescheduling is restricted
This commit is contained in:
parent
6d6e235e5c
commit
201e2f136d
|
@ -92,7 +92,9 @@ class ScheduleServiceCheckCommandForm extends ObjectsCommandForm
|
||||||
{
|
{
|
||||||
foreach ($this->objects as $object) {
|
foreach ($this->objects as $object) {
|
||||||
/** @var \Icinga\Module\Monitoring\Object\Service $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;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue