mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-19 15:22:17 +02:00
N°9614 - Display the icon in EventNotificationNewsroom only for events relating to the logged-in user
This commit is contained in:
@@ -715,6 +715,8 @@ HTML;
|
|||||||
$oPage->add_header('Content-Security-Policy: sandbox;');
|
$oPage->add_header('Content-Security-Policy: sandbox;');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$oEvent = MetaModel::GetObject(EventNotificationNewsroom::class, $sId, false, true);
|
||||||
|
if (($oEvent !== null) && ($oEvent->Get('contact_id') === UserRights::GetContactId())) {
|
||||||
ormDocument::DownloadDocument(
|
ormDocument::DownloadDocument(
|
||||||
$oPage,
|
$oPage,
|
||||||
EventNotificationNewsroom::class,
|
EventNotificationNewsroom::class,
|
||||||
@@ -726,6 +728,7 @@ HTML;
|
|||||||
$oPage->output();
|
$oPage->output();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param string $sAction
|
* @param string $sAction
|
||||||
|
|||||||
Reference in New Issue
Block a user