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

Correction des privilèges ED, UR, ETAB et amélioration de la méthode de...

Correction des privilèges ED, UR, ETAB et amélioration de la méthode de récupération des structures affichables par type
parent e6552ba5
Loading
Loading
Loading
Loading
+1
Changes for module/Application/config/others/ecole-doctorale.config.php: 1 added line, 0 removed lines.
Original line number Diff line number Diff line
@@ -36,6 +36,7 @@ return [
                    'privileges' => [
                        StructurePrivileges::STRUCTURE_MODIFICATION_TOUTES_STRUCTURES,
                        StructurePrivileges::STRUCTURE_MODIFICATION_SES_STRUCTURES,
                        StructurePrivileges::STRUCTURE_CREATION_ED,
                    ],
                ],
                [
+10
Changes for module/Application/config/others/etablissement.config.php: 10 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -32,6 +32,16 @@ return [
                        'ajouter',
                        'supprimer',
                        'restaurer',
                    ],
                    'privileges' => [
                        StructurePrivileges::STRUCTURE_MODIFICATION_TOUTES_STRUCTURES,
                        StructurePrivileges::STRUCTURE_MODIFICATION_SES_STRUCTURES,
                        StructurePrivileges::STRUCTURE_CREATION_ETAB
                    ],
                ],
                [
                    'controller' => EtablissementController::class,
                    'action'     => [
                        'modifier',
                        'supprimer-logo',
                    ],
+3
Changes for module/Application/config/others/structure.config.php: 3 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -28,6 +28,9 @@ return [
                            StructurePrivileges::STRUCTURE_CONSULTATION_SES_STRUCTURES,
                            StructurePrivileges::STRUCTURE_MODIFICATION_TOUTES_STRUCTURES,
                            StructurePrivileges::STRUCTURE_MODIFICATION_SES_STRUCTURES,
                            StructurePrivileges::STRUCTURE_CREATION_ETAB,
                            StructurePrivileges::STRUCTURE_CREATION_ED,
                            StructurePrivileges::STRUCTURE_CREATION_UR,
                        ],
                        'resources'  => ['structure'],
                        'assertion'  => 'Assertion\\Structure',
+1
Changes for module/Application/config/others/unite-recherche.config.php: 1 added line, 0 removed lines.
Original line number Diff line number Diff line
@@ -37,6 +37,7 @@ return [
                    'privileges' => [
                        StructurePrivileges::STRUCTURE_MODIFICATION_TOUTES_STRUCTURES,
                        StructurePrivileges::STRUCTURE_MODIFICATION_SES_STRUCTURES,
                        StructurePrivileges::STRUCTURE_CREATION_UR,
                    ],
                ],
                [
+3
Changes for module/Application/src/Application/Provider/Privilege/StructurePrivileges.php: 3 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -13,5 +13,8 @@ class StructurePrivileges extends Privileges
    const STRUCTURE_CONSULTATION_SES_STRUCTURES     = 'structure-consultation-de-ses-structures';
    const STRUCTURE_MODIFICATION_TOUTES_STRUCTURES  = 'structure-modification-de-toutes-les-structures';
    const STRUCTURE_MODIFICATION_SES_STRUCTURES     = 'structure-modification-de-ses-structures';
    const STRUCTURE_CREATION_ETAB                   = 'structure-creation-etab';
    const STRUCTURE_CREATION_ED                     = 'structure-creation-ed';
    const STRUCTURE_CREATION_UR                     = 'structure-creation-ur';

}
 No newline at end of file
Loading