mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 15:03:25 +00:00
PHRAS-3442_optimize-list-notifications_4.1-bis
WIP fix tests todo : mark read notifications (button ? click ?)
This commit is contained in:
@@ -211,6 +211,10 @@ class eventsmanager_broker
|
||||
|
||||
public function get_notifications(int $offset=0, int $limit=10, $readFilter = self::READ | self::UNREAD, \Alchemy\Phrasea\Utilities\Stopwatch $stopwatch = null)
|
||||
{
|
||||
if(!$this->app->getAuthenticatedUser()) {
|
||||
return;
|
||||
}
|
||||
|
||||
if($stopwatch) $stopwatch->lap("broker start");
|
||||
|
||||
// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||
|
Reference in New Issue
Block a user