mirror of
https://github.com/Icinga/icinga2.git
synced 2025-04-08 17:05:25 +02:00
parent
4bc4defc97
commit
a939cbfef8
@ -1593,10 +1593,16 @@ Value HostsTable::GroupsAccessor(const Value& row)
|
||||
|
||||
Value HostsTable::ContactGroupsAccessor(const Value& row)
|
||||
{
|
||||
/* use hostcheck service */
|
||||
Service::Ptr hc = static_cast<Host::Ptr>(row)->GetHostCheckService();
|
||||
|
||||
if (!hc)
|
||||
return Empty;
|
||||
|
||||
/* XXX Service -> Notifications -> UserGroups */
|
||||
Array::Ptr contactgroups = boost::make_shared<Array>();
|
||||
|
||||
BOOST_FOREACH(const Notification::Ptr& notification, static_cast<Service::Ptr>(row)->GetNotifications()) {
|
||||
BOOST_FOREACH(const Notification::Ptr& notification, hc->GetNotifications()) {
|
||||
ObjectLock olock(notification);
|
||||
|
||||
BOOST_FOREACH(const UserGroup::Ptr& ug, notification->GetGroups()) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user