Loading documentation/release/3.1.7.md +16 −2 Original line number Diff line number Diff line Loading @@ -6,12 +6,12 @@ Changements * La colonne action des index des modules `Carriere` et `Metier` est maintenant conditionné au fait de pouvoir effectuer au moins une action * Nouveaux privilèges pour l'affichage des agents à partir des éléments des modules `Carriere` et `Metier` * Nettoyage du module `Element` Modification de la base de données --- * Nouveaux privilèges pour la partie GPEC du module `Carriere` ```postgresql INSERT INTO unicaen_privilege_privilege(CATEGORIE_ID, CODE, LIBELLE, ORDRE) WITH d(code, lib, ordre) AS ( Loading Loading @@ -41,7 +41,6 @@ JOIN unicaen_privilege_categorie cp ON cp.CODE = 'grade'; ``` * Nouveaux privilèges pour la partie GPEC du module `Metier` ```postgresql INSERT INTO unicaen_privilege_privilege(CATEGORIE_ID, CODE, LIBELLE, ORDRE) WITH d(code, lib, ordre) AS ( Loading @@ -53,3 +52,18 @@ JOIN unicaen_privilege_categorie cp ON cp.CODE = 'metier'; -- TODO -- ajuster les privilèges en fonction de votre structure ``` * Ajustement des privilèges du module `Element` ```postgresql update unicaen_privilege_privilege set ordre = 40 where code='niveau_modifier'; update unicaen_privilege_privilege set ordre = 60 where code='niveau_effacer'; INSERT INTO unicaen_privilege_privilege(CATEGORIE_ID, CODE, LIBELLE, ORDRE) WITH d(code, lib, ordre) AS ( SELECT 'niveau_ajouter', 'Ajouter', 30 UNION SELECT 'niveau_historiser', 'Historiser/Restaurer', 50 ) SELECT cp.id, d.code, d.lib, d.ordre FROM d JOIN unicaen_privilege_categorie cp ON cp.CODE = 'niveau'; ``` No newline at end of file module/Element/config/merged/niveau.config.php +24 −2 Original line number Diff line number Diff line Loading @@ -27,7 +27,6 @@ return [ 'controller' => NiveauController::class, 'action' => [ 'index', 'afficher', ], 'privileges' => [ NiveauPrivileges::NIVEAU_INDEX, Loading @@ -46,12 +45,28 @@ return [ 'controller' => NiveauController::class, 'action' => [ 'ajouter', ], 'privileges' => [ NiveauPrivileges::NIVEAU_AJOUTER, ], ], [ 'controller' => NiveauController::class, 'action' => [ 'modifier', ], 'privileges' => [ NiveauPrivileges::NIVEAU_MODIFIER, ], ], [ 'controller' => NiveauController::class, 'action' => [ 'historiser', 'restaurer', ], 'privileges' => [ NiveauPrivileges::NIVEAU_MODIFIER, NiveauPrivileges::NIVEAU_HISTORISER, ], ], [ Loading Loading @@ -81,6 +96,7 @@ return [ 'options' => [ 'route' => '/niveau', 'defaults' => [ /** @see NiveauController::indexAction() */ 'controller' => NiveauController::class, 'action' => 'index', ], Loading @@ -92,6 +108,7 @@ return [ 'options' => [ 'route' => '/ajouter', 'defaults' => [ /** @see NiveauController::ajouterAction() */ 'controller' => NiveauController::class, 'action' => 'ajouter', ], Loading @@ -103,6 +120,7 @@ return [ 'options' => [ 'route' => '/afficher/:maitrise', 'defaults' => [ /** @see NiveauController::afficherAction() */ 'controller' => NiveauController::class, 'action' => 'afficher', ], Loading @@ -114,6 +132,7 @@ return [ 'options' => [ 'route' => '/modifier/:maitrise', 'defaults' => [ /** @see NiveauController::modifierAction() */ 'controller' => NiveauController::class, 'action' => 'modifier', ], Loading @@ -125,6 +144,7 @@ return [ 'options' => [ 'route' => '/historiser/:maitrise', 'defaults' => [ /** @see NiveauController::historiserAction() */ 'controller' => NiveauController::class, 'action' => 'historiser', ], Loading @@ -136,6 +156,7 @@ return [ 'options' => [ 'route' => '/restaurer/:maitrise', 'defaults' => [ /** @see NiveauController::restaurerAction() */ 'controller' => NiveauController::class, 'action' => 'restaurer', ], Loading @@ -147,6 +168,7 @@ return [ 'options' => [ 'route' => '/supprimer/:maitrise', 'defaults' => [ /** @see NiveauController::supprimerAction() */ 'controller' => NiveauController::class, 'action' => 'supprimer', ], Loading module/Element/src/Element/Controller/NiveauController.php +0 −1 Original line number Diff line number Diff line Loading @@ -28,7 +28,6 @@ class NiveauController extends AbstractActionController 'title' => "Affichage d'un niveau de maîtrise", 'maitrise' => $maitrise, ]); $vm->setTemplate('application/competence/afficher-element-niveau'); return $vm; } Loading module/Element/src/Element/Controller/NiveauControllerFactory.php +4 −0 Original line number Diff line number Diff line Loading @@ -5,12 +5,16 @@ namespace Element\Controller; use Element\Form\Niveau\NiveauForm; use Element\Service\Niveau\NiveauService; use Interop\Container\ContainerInterface; use Psr\Container\ContainerExceptionInterface; use Psr\Container\NotFoundExceptionInterface; class NiveauControllerFactory { /** * @param ContainerInterface $container * @return NiveauController * @throws ContainerExceptionInterface * @throws NotFoundExceptionInterface */ public function __invoke(ContainerInterface $container) : NiveauController { Loading module/Element/src/Element/Entity/Db/Interfaces/HasNiveauInterface.php +2 −3 Original line number Diff line number Diff line Loading @@ -7,9 +7,8 @@ use Element\Entity\Db\Niveau; interface HasNiveauInterface { public function getNiveauMaitrise() : ?Niveau; public function setNiveauMaitrise(?Niveau $competenceMaitrise); public function setNiveauMaitrise(?Niveau $competenceMaitrise) : void; public function isClef() : ?bool; public function setClef(?bool $clef); public function setClef(?bool $clef) : void; } No newline at end of file Loading
documentation/release/3.1.7.md +16 −2 Original line number Diff line number Diff line Loading @@ -6,12 +6,12 @@ Changements * La colonne action des index des modules `Carriere` et `Metier` est maintenant conditionné au fait de pouvoir effectuer au moins une action * Nouveaux privilèges pour l'affichage des agents à partir des éléments des modules `Carriere` et `Metier` * Nettoyage du module `Element` Modification de la base de données --- * Nouveaux privilèges pour la partie GPEC du module `Carriere` ```postgresql INSERT INTO unicaen_privilege_privilege(CATEGORIE_ID, CODE, LIBELLE, ORDRE) WITH d(code, lib, ordre) AS ( Loading Loading @@ -41,7 +41,6 @@ JOIN unicaen_privilege_categorie cp ON cp.CODE = 'grade'; ``` * Nouveaux privilèges pour la partie GPEC du module `Metier` ```postgresql INSERT INTO unicaen_privilege_privilege(CATEGORIE_ID, CODE, LIBELLE, ORDRE) WITH d(code, lib, ordre) AS ( Loading @@ -53,3 +52,18 @@ JOIN unicaen_privilege_categorie cp ON cp.CODE = 'metier'; -- TODO -- ajuster les privilèges en fonction de votre structure ``` * Ajustement des privilèges du module `Element` ```postgresql update unicaen_privilege_privilege set ordre = 40 where code='niveau_modifier'; update unicaen_privilege_privilege set ordre = 60 where code='niveau_effacer'; INSERT INTO unicaen_privilege_privilege(CATEGORIE_ID, CODE, LIBELLE, ORDRE) WITH d(code, lib, ordre) AS ( SELECT 'niveau_ajouter', 'Ajouter', 30 UNION SELECT 'niveau_historiser', 'Historiser/Restaurer', 50 ) SELECT cp.id, d.code, d.lib, d.ordre FROM d JOIN unicaen_privilege_categorie cp ON cp.CODE = 'niveau'; ``` No newline at end of file
module/Element/config/merged/niveau.config.php +24 −2 Original line number Diff line number Diff line Loading @@ -27,7 +27,6 @@ return [ 'controller' => NiveauController::class, 'action' => [ 'index', 'afficher', ], 'privileges' => [ NiveauPrivileges::NIVEAU_INDEX, Loading @@ -46,12 +45,28 @@ return [ 'controller' => NiveauController::class, 'action' => [ 'ajouter', ], 'privileges' => [ NiveauPrivileges::NIVEAU_AJOUTER, ], ], [ 'controller' => NiveauController::class, 'action' => [ 'modifier', ], 'privileges' => [ NiveauPrivileges::NIVEAU_MODIFIER, ], ], [ 'controller' => NiveauController::class, 'action' => [ 'historiser', 'restaurer', ], 'privileges' => [ NiveauPrivileges::NIVEAU_MODIFIER, NiveauPrivileges::NIVEAU_HISTORISER, ], ], [ Loading Loading @@ -81,6 +96,7 @@ return [ 'options' => [ 'route' => '/niveau', 'defaults' => [ /** @see NiveauController::indexAction() */ 'controller' => NiveauController::class, 'action' => 'index', ], Loading @@ -92,6 +108,7 @@ return [ 'options' => [ 'route' => '/ajouter', 'defaults' => [ /** @see NiveauController::ajouterAction() */ 'controller' => NiveauController::class, 'action' => 'ajouter', ], Loading @@ -103,6 +120,7 @@ return [ 'options' => [ 'route' => '/afficher/:maitrise', 'defaults' => [ /** @see NiveauController::afficherAction() */ 'controller' => NiveauController::class, 'action' => 'afficher', ], Loading @@ -114,6 +132,7 @@ return [ 'options' => [ 'route' => '/modifier/:maitrise', 'defaults' => [ /** @see NiveauController::modifierAction() */ 'controller' => NiveauController::class, 'action' => 'modifier', ], Loading @@ -125,6 +144,7 @@ return [ 'options' => [ 'route' => '/historiser/:maitrise', 'defaults' => [ /** @see NiveauController::historiserAction() */ 'controller' => NiveauController::class, 'action' => 'historiser', ], Loading @@ -136,6 +156,7 @@ return [ 'options' => [ 'route' => '/restaurer/:maitrise', 'defaults' => [ /** @see NiveauController::restaurerAction() */ 'controller' => NiveauController::class, 'action' => 'restaurer', ], Loading @@ -147,6 +168,7 @@ return [ 'options' => [ 'route' => '/supprimer/:maitrise', 'defaults' => [ /** @see NiveauController::supprimerAction() */ 'controller' => NiveauController::class, 'action' => 'supprimer', ], Loading
module/Element/src/Element/Controller/NiveauController.php +0 −1 Original line number Diff line number Diff line Loading @@ -28,7 +28,6 @@ class NiveauController extends AbstractActionController 'title' => "Affichage d'un niveau de maîtrise", 'maitrise' => $maitrise, ]); $vm->setTemplate('application/competence/afficher-element-niveau'); return $vm; } Loading
module/Element/src/Element/Controller/NiveauControllerFactory.php +4 −0 Original line number Diff line number Diff line Loading @@ -5,12 +5,16 @@ namespace Element\Controller; use Element\Form\Niveau\NiveauForm; use Element\Service\Niveau\NiveauService; use Interop\Container\ContainerInterface; use Psr\Container\ContainerExceptionInterface; use Psr\Container\NotFoundExceptionInterface; class NiveauControllerFactory { /** * @param ContainerInterface $container * @return NiveauController * @throws ContainerExceptionInterface * @throws NotFoundExceptionInterface */ public function __invoke(ContainerInterface $container) : NiveauController { Loading
module/Element/src/Element/Entity/Db/Interfaces/HasNiveauInterface.php +2 −3 Original line number Diff line number Diff line Loading @@ -7,9 +7,8 @@ use Element\Entity\Db\Niveau; interface HasNiveauInterface { public function getNiveauMaitrise() : ?Niveau; public function setNiveauMaitrise(?Niveau $competenceMaitrise); public function setNiveauMaitrise(?Niveau $competenceMaitrise) : void; public function isClef() : ?bool; public function setClef(?bool $clef); public function setClef(?bool $clef) : void; } No newline at end of file