fix getuser in owner service

This commit is contained in:
Baptiste Lemoine 2018-07-19 13:22:44 +02:00
parent e9ef1dcef3
commit 2db69f1d7f
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@ class OwnerService {
$activeFestival = $user->getActiveFestival();
if ( ! $activeFestival ) {
$activeFestival = $this->em->getRepository( 'AppBundle:Festival' )
->findOneBy( [ 'user' => $this->getUser()->getId() ],
->findOneBy( [ 'user' => $user->getId() ],
[ 'id' => 'desc' ],
0,
1 );