diff --git a/library/Director/Objects/IcingaObject.php b/library/Director/Objects/IcingaObject.php index 177bec88..d7885b19 100644 --- a/library/Director/Objects/IcingaObject.php +++ b/library/Director/Objects/IcingaObject.php @@ -484,6 +484,11 @@ abstract class IcingaObject extends DbObject implements IcingaConfigRenderer return parent::reallySet('disabled', $this->normalizeBoolean($disabled)); } + public function isDisabled() + { + return $this->disabled === 'y'; + } + public function markForRemoval($remove = true) { $this->shouldBeRemoved = $remove;