Commit 7340ce56 authored by Jean-Philippe Metivier's avatar Jean-Philippe Metivier
Browse files

Ajustement de l'index doctorant

parent c66e0d14
Loading
Loading
Loading
Loading
+1
Changes for module/Formation/SQL/003_privilege.sql: 1 added line, 0 removed lines.
Original line number Diff line number Diff line
INSERT INTO CATEGORIE_PRIVILEGE (ID, CODE, LIBELLE, ORDRE) VALUES (4000, 'formation', 'Module de formation', 3000);
INSERT INTO PRIVILEGE (ID, CATEGORIE_ID, CODE, LIBELLE, ORDRE) VALUES (800, 4000, 'index', 'Accès à l''index du module de formation',1);
INSERT INTO PRIVILEGE (ID, CATEGORIE_ID, CODE, LIBELLE, ORDRE) VALUES (799, 4000, 'index_doctorant', 'Accès à l''index doctorant',2);

INSERT INTO CATEGORIE_PRIVILEGE (ID, CODE, LIBELLE, ORDRE) VALUES (4001, 'formation_module', 'Gestion des modules de formations', 3100);
INSERT INTO PRIVILEGE (ID, CATEGORIE_ID, CODE, LIBELLE, ORDRE) VALUES (801, 4001, 'index', 'Accès à l''index des modules de formation', 1);
−36

File deleted.

+2 −1
Changes for module/Formation/config/others/formateur.config.php: 2 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -5,6 +5,7 @@ namespace Formation;
use Formation\Controller\FormateurController;
use Formation\Controller\FormateurControllerFactory;
use Formation\Provider\Privilege\IndexPrivileges;
use Formation\Provider\Privilege\SessionPrivileges;
use Formation\Service\Formateur\FormateurService;
use Formation\Service\Formateur\FormateurServiceFactory;
use UnicaenAuth\Guard\PrivilegeController;
@@ -22,7 +23,7 @@ return [
                        'retirer',
                    ],
                    'privileges' => [
                        IndexPrivileges::INDEX_AFFICHER,
                        SessionPrivileges::SESSION_MODIFIER,
                    ],
                ],
            ],
+13 −7
Changes for module/Formation/config/others/index.config.php: 13 added lines, 7 removed lines.
Original line number Diff line number Diff line
@@ -17,12 +17,20 @@ return [
                    'controller' => IndexController::class,
                    'action' => [
                        'index',
                        'index-doctorant',
                    ],
                    'privileges' => [
                        IndexPrivileges::INDEX_AFFICHER,
                    ],
                ],
                [
                    'controller' => IndexController::class,
                    'action' => [
                        'index-doctorant',
                    ],
                    'privileges' => [
                        IndexPrivileges::INDEX_DOCTORANT,
                    ],
                ],
            ],
        ],
    ],
@@ -35,15 +43,13 @@ return [
                        'label'    => 'Formations',
                        'route'    => 'formation',
                        'resource' => PrivilegeController::getResourceId(IndexController::class, 'index') ,
                        'order'    => 9999,
                        'pages' => [
                            'Index Doctorants' => [
                        'order'    => 9998,
                    ],
                    'formation-doctorant' => [
                        'label'    => 'Mes formations',
                        'route'    => 'formation/index-doctorant',
                        'resource' => PrivilegeController::getResourceId(IndexController::class, 'index-doctorant') ,
                                'order'    => 10,
                            ],
                        ],
                        'order'    => 9999,
                    ],
                ],
            ],
−1
Changes for module/Formation/config/others/inscription.config.php: 0 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -4,7 +4,6 @@ namespace Formation;

use Formation\Controller\InscriptionController;
use Formation\Controller\InscriptionControllerFactory;
use Formation\Provider\Privilege\IndexPrivileges;
use Formation\Provider\Privilege\InscriptionPrivileges;
use Formation\Service\Inscription\InscriptionService;
use Formation\Service\Inscription\InscriptionServiceFactory;
Loading