monitoring/detail: Hide Reschedule link if the host or service is not actively checked

refs #8378
This commit is contained in:
Eric Lippmann 2015-09-04 17:18:07 +02:00
parent 363f6271d9
commit 7464742afe
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@
<tr>
<th><?= (bool) $object->active_checks_enabled ? $this->translate('Next check') : $this->translate('Next update') ?></th>
<td>
<?php if ($this->hasPermission('monitoring/command/schedule-check')) {
<?php if ((bool) $object->active_checks_enabled && $this->hasPermission('monitoring/command/schedule-check')) {
if ($object->getType() === $object::TYPE_SERVICE) {
echo $this->qlink(
$this->translate('Reschedule'),