GroupMembershipResolver: support calls from onStore

This commit is contained in:
Thomas Gelf 2017-08-21 08:10:47 +02:00
parent 8bc26ccb97
commit 9adeb65f0c
1 changed files with 3 additions and 1 deletions

View File

@ -124,7 +124,9 @@ abstract class GroupMembershipResolver
*/
public function addObject(IcingaObject $object)
{
if (! $object->hasBeenLoadedFromDb()) {
// Hint: cannot use hasBeenLoadedFromDB, as it is false in onStore()
// for new objects
if (! $id = $object->get('id')) {
return $this;
}
// Disabling for now, how should this work?