Commit 17ac2c9f by Yvon

restrict Revue QCM btn visibility to role_gestion_groupe and role_super_admin

parent 481ebda9
......@@ -670,7 +670,7 @@ class PrestataireAdmin extends AbstractAdmin
],
],
];
if ($this->getConfigurationPool()->getContainer()->getParameter('presta_self_init_and_eval')) {
if (($this->security->isGranted('ROLE_GESTION_GROUPE') || $this->security->isGranted('ROLE_SUPER_ADMIN')) && $this->getConfigurationPool()->getContainer()->getParameter('presta_self_init_and_eval')) {
$actions['reviewPrestaQuiz'] = [
'template' => '@kohinos/tav/reviewprestaquiz.html.twig'
];
......
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