Commit 1695adbe by Julien Jorry

Fix role_contact access to last operations bug

parent eccc3598
...@@ -151,7 +151,7 @@ class OperationUtils ...@@ -151,7 +151,7 @@ class OperationUtils
return $user->getAdherent(); return $user->getAdherent();
} elseif (null != $this->session->get('_comptoirgere') && $user->isGranted('ROLE_COMPTOIR')) { } elseif (null != $this->session->get('_comptoirgere') && $user->isGranted('ROLE_COMPTOIR')) {
return $this->session->get('_comptoirgere'); return $this->session->get('_comptoirgere');
} elseif (null != $this->session->get('_groupegere') && $user->isGranted('ROLE_GESTION_GROUPE')) { } elseif (null != $this->session->get('_groupegere') && ($user->isGranted('ROLE_GESTION_GROUPE')|| $user->isGranted('ROLE_CONTACT'))) {
return $this->session->get('_groupegere'); return $this->session->get('_groupegere');
} elseif ($user->isGranted('ROLE_ADMIN_SIEGE')) { } elseif ($user->isGranted('ROLE_ADMIN_SIEGE')) {
$siege = $this->em->getRepository(Siege::class)->getTheOne(); $siege = $this->em->getRepository(Siege::class)->getTheOne();
......
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