From 193cb60604673e52f27d93baddb694522b967989 Mon Sep 17 00:00:00 2001 From: Alexander Fuhr Date: Tue, 16 Jun 2015 17:51:01 +0200 Subject: [PATCH] Groups: Add groups support to User, Host and Service --- library/Director/Objects/IcingaHost.php | 2 ++ library/Director/Objects/IcingaService.php | 2 ++ library/Director/Objects/IcingaUser.php | 2 ++ 3 files changed, 6 insertions(+) diff --git a/library/Director/Objects/IcingaHost.php b/library/Director/Objects/IcingaHost.php index 9981984d..6235199c 100644 --- a/library/Director/Objects/IcingaHost.php +++ b/library/Director/Objects/IcingaHost.php @@ -37,6 +37,8 @@ class IcingaHost extends IcingaObject protected $supportsCustomVars = true; + protected $supportsGroups = true; + protected function renderCheck_command_id() { return $this->renderCommandProperty($this->check_command_id); diff --git a/library/Director/Objects/IcingaService.php b/library/Director/Objects/IcingaService.php index 05499d45..423db8fa 100644 --- a/library/Director/Objects/IcingaService.php +++ b/library/Director/Objects/IcingaService.php @@ -34,6 +34,8 @@ class IcingaService extends IcingaObject 'object_type' => null, ); + protected $supportsGroups = true; + protected function renderCheck_command_id() { return $this->renderCommandProperty($this->check_command_id); diff --git a/library/Director/Objects/IcingaUser.php b/library/Director/Objects/IcingaUser.php index ece3693f..c0581a44 100644 --- a/library/Director/Objects/IcingaUser.php +++ b/library/Director/Objects/IcingaUser.php @@ -18,6 +18,8 @@ class IcingaUser extends IcingaObject 'object_type' => null, ); + protected $supportsGroups = true; + protected function renderEnable_notifications() { return $this->renderBooleanProperty('enable_notifications');