Commit c3e0f943 by Julien Jorry

Fix : Cotisation not shown uptodate correctly

parent e0a2d79a
......@@ -73,7 +73,7 @@ class CotisationUtils
$query = $this->em->getRepository(Flux::class)->getQueryByPrestataire($this->session->get('_prestagere'), 'cotisation');
}
} elseif (null !== $user) {
if ($user->isGranted('ROLE_ADHERENT') && null != $user->getAdherent()) {
if (null != $user->getAdherent()) {
$query = $this->em->getRepository(Flux::class)->getQueryByAdherent($user->getAdherent(), 'cotisation');
} elseif ($user->isGranted('ROLE_PRESTATAIRE') && null != $this->session->get('_prestagere')) {
$query = $this->em->getRepository(Flux::class)->getQueryByPrestataire($this->session->get('_prestagere'), 'cotisation');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment