notification: do not show system notification in UI

This commit is contained in:
Julien Fastré 2022-01-04 22:40:48 +01:00
parent 6f561f57a6
commit c17fd968be

View File

@ -160,6 +160,7 @@ final class NotificationRepository implements ObjectRepository
->select('n')
->where($qb->expr()->eq('n.relatedEntityClass', ':relatedEntityClass'))
->andWhere($qb->expr()->eq('n.relatedEntityId', ':relatedEntityId'))
->andWhere($qb->expr()->isNotNull('n.sender'))
->andWhere(
$qb->expr()->orX(
$qb->expr()->isMemberOf(':user', 'n.addressees'),