N°9614 - Display the icon in EventNotificationNewsroom only for events relating to the logged-in user

This commit is contained in:
lenaick.moreira
2026-05-18 16:33:45 +02:00
parent 50e45bfd25
commit 5dcbb23467

View File

@@ -715,15 +715,18 @@ HTML;
$oPage->add_header('Content-Security-Policy: sandbox;'); $oPage->add_header('Content-Security-Policy: sandbox;');
} }
ormDocument::DownloadDocument( $oEvent = MetaModel::GetObject(EventNotificationNewsroom::class, $sId, false, true);
$oPage, if (($oEvent !== null) && ($oEvent->Get('contact_id') === UserRights::GetContactId())) {
EventNotificationNewsroom::class, ormDocument::DownloadDocument(
$sId, $oPage,
'icon', EventNotificationNewsroom::class,
ormDocument::ENUM_CONTENT_DISPOSITION_INLINE, $sId,
bAllowAllData: true 'icon',
); ormDocument::ENUM_CONTENT_DISPOSITION_INLINE,
$oPage->output(); bAllowAllData: true
);
$oPage->output();
}
} }
} }