function getNotificationTargets($entity)
{
if (Session::haveRight("config", UPDATE)) {
$this->addTarget(Notification::GLOBAL_ADMINISTRATOR, __('Administrator'));
}
$this->addTarget(Notification::ENTITY_ADMINISTRATOR, __('Entity administrator'));
$this->addProfilesToTargets();
$this->addGroupsToTargets($entity);
}