PHRAS-3442_optimize-list-notifications_4.1-bis

WIP
fix tests
todo : mark read notifications (button ? click ?)
This commit is contained in:
jygaulier
2021-06-15 19:23:00 +02:00
parent c6784d14c1
commit 6472ce360f
5 changed files with 15 additions and 35 deletions

View File

@@ -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");
// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!