From 27f290670a7cc036f2931e44d9fbf24c5cd51e42 Mon Sep 17 00:00:00 2001 From: Alexey Skobkin Date: Sun, 1 Jul 2018 15:13:42 +0300 Subject: [PATCH] Invite list privacy bug fix. --- src/Repository/InviteRepository.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Repository/InviteRepository.php b/src/Repository/InviteRepository.php index b39e8ae..268b000 100644 --- a/src/Repository/InviteRepository.php +++ b/src/Repository/InviteRepository.php @@ -25,6 +25,9 @@ class InviteRepository extends ServiceEntityRepository $qb ->select(['i', 'uu']) ->leftJoin('i.usedBy', 'uu') + ->where('i.user = :user') + ->orderBy('i.id', 'asc') + ->setParameter('user', $user->getId()) ; return $qb->getQuery()->getResult();