mirror of
https://github.com/Icinga/icingadb-web.git
synced 2026-05-28 04:36:06 -04:00
ProcessCheckResultForm: Skip objects with passive checks disabled
Icinga won't accept check results for such.
This commit is contained in:
parent
943fb65b04
commit
d4136d9d83
1 changed files with 4 additions and 1 deletions
|
|
@ -103,7 +103,10 @@ class ProcessCheckResultForm extends CommandForm
|
|||
|
||||
protected function getCommand(Model $object)
|
||||
{
|
||||
if (! $this->isGrantedOn('icingadb/command/process-check-result', $object)) {
|
||||
if (
|
||||
! $object->passive_checks_enabled
|
||||
|| ! $this->isGrantedOn('icingadb/command/process-check-result', $object)
|
||||
) {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue