diff --git a/core/datamodel.core.xml b/core/datamodel.core.xml index 7b953e1e5..533ef8af8 100644 --- a/core/datamodel.core.xml +++ b/core/datamodel.core.xml @@ -284,7 +284,7 @@ while ($oRecipient = $oRecipientsSet->Fetch()) { // Skip recipients that have no users - if (get_class($oRecipient) === Person::class && UserRights::GetUserFromPerson($oRecipient) === null) { + if ($oRecipient instanceof Person && UserRights::GetUserFromPerson($oRecipient, false) === null) { continue; } if (!\Combodo\iTop\Service\Notification\NotificationsService::GetInstance()->IsSubscribed($oTrigger, $this, $oRecipient)) {