Commit cf1cbddd authored by Bertrand Gauthier's avatar Bertrand Gauthier
Browse files

Les rôles ED et UR ne doivent pas voir le menu Substitutions.

parent 5a740a09
Loading
Loading
Loading
Loading
+3 −2
Changes for module/Application/config/others/substitution.config.php: 3 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -2,6 +2,7 @@

use Application\Controller\Factory\SubstitutionControllerFactory;
use Application\Provider\Privilege\StructurePrivileges;
use Application\Provider\Privilege\SubstitutionPrivileges;
use UnicaenAuth\Guard\PrivilegeController;
use Zend\Mvc\Router\Http\Segment;

@@ -156,8 +157,8 @@ return [
                            'substitution' => [
                                'label'    => 'Substitutions',
                                'route'    => 'substitution-index',
                                'resource' => PrivilegeController::getResourceId('Application\Controller\Admin', 'index'),

//                                'resource' => PrivilegeController::getResourceId('Application\Controller\Admin', 'index'),
                                'resource' => SubstitutionPrivileges::getResourceId(SubstitutionPrivileges::SUBSTITUION_CONSULTATION_ECOLE),
                                'order'    => 50,
                            ],
                        ],