Loading config/application.config.php +1 Changes for config/application.config.php: 1 added line, 0 removed lines. Original line number Diff line number Diff line Loading @@ -5,6 +5,7 @@ $modules = [ 'BjyAuthorize', 'AssetManager', 'UnicaenApp', 'UnicaenAuth', 'UnicaenLdap', 'Autoform', 'Fichier', 'Mailing', 'Octopus', 'Utilisateur', Loading config/autoload/unicaen-auth.global.php +1 −1 Changes for config/autoload/unicaen-auth.global.php: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -10,7 +10,7 @@ $settings = [ * Flag indiquant si l'utilisateur authenitifié avec succès via l'annuaire LDAP doit * être enregistré/mis à jour dans la table des utilisateurs de l'appli. */ 'save_ldap_user_in_database' => false, 'save_ldap_user_in_database' => true, 'enable_privileges' => true, Loading module/Application/Module.php +21 Changes for module/Application/Module.php: 21 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -33,8 +33,29 @@ class Module } } ); $e->getApplication()->getEventManager()->getSharedManager()->attach( "*", 'authenticate.success', array($this, 'onUserLogin'), 100 ); } public function onUserLogin( $e ) { if (is_string($identity = $e->getIdentity())) { // login de l'utilisateur authentifié $username = $identity; //... } else { // id de l'utilisateur authentifié dans la table $id = $identity; //... } //... } public function getConfig() { $configInit = [ Loading module/Application/config/merged/agent.config.php +33 Changes for module/Application/config/merged/agent.config.php: 33 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -4,6 +4,8 @@ namespace Application; use Application\Controller\Agent\AgentController; use Application\Controller\Agent\AgentControllerFactory; use Application\Controller\AgentFichier\AgentFichierController; use Application\Controller\AgentFichier\AgentFichierControllerFactory; use Application\Form\Agent\AgentForm; use Application\Form\Agent\AgentFormFactory; use Application\Form\Agent\AgentHydrator; Loading Loading @@ -61,6 +63,16 @@ return [ AgentPrivileges::EDITER, ], ], [ 'controller' => AgentFichierController::class, 'action' => [ 'index', 'upload' ], 'privileges' => [ AgentPrivileges::AFFICHER, ], ], ], ], ], Loading @@ -78,6 +90,26 @@ return [ ], 'may_terminate' => true, 'child_routes' => [ 'fichiers' => [ 'type' => Segment::class, 'options' => [ 'route' => '/fichiers[/:agent]', 'defaults' => [ 'controller' => AgentFichierController::class, 'action' => 'index', ], ], ], 'upload-fichier' => [ 'type' => Segment::class, 'options' => [ 'route' => '/upload-fichier/:agent/:nature', 'defaults' => [ 'controller' => AgentFichierController::class, 'action' => 'upload', ], ], ], 'afficher' => [ 'type' => Segment::class, 'options' => [ Loading Loading @@ -153,6 +185,7 @@ return [ 'controllers' => [ 'factories' => [ AgentController::class => AgentControllerFactory::class, AgentFichierController::class => AgentFichierControllerFactory::class, ], ], 'form_elements' => [ Loading module/Application/config/merged/menu.config.php +70 Changes for module/Application/config/merged/menu.config.php: 70 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -18,6 +18,68 @@ return [ 'droits' => [ 'visible' => false, ], 'index-personnel' => [ // 'visible' => false, 'label' => 'Accueil', 'route' => 'index-personnel', 'roles' => [ 'Personnel' ], 'pages' => [ // 'index-personnel' => [ // 'visible' => true, // 'order' => 100, // 'label' => 'Mon accueil', // 'icon' => 'fas fa-angle-right', // 'route' => 'index-personnel', // 'roles' => [ // 'Personnel', // ], // ], 'entretien' => [ 'visible' => true, 'order' => 200, 'label' => 'Mes entretiens Pro.', 'icon' => 'fas fa-angle-right', 'route' => 'entretien-professionnel', 'roles' => [ 'Personnel', ], ], 'fichier' => [ 'visible' => true, 'order' => 300, 'label' => 'Mes fichiers', 'icon' => 'fas fa-angle-right', 'route' => 'agent/fichiers', 'roles' => [ 'Personnel', ], ], 'rgpd' => [ 'visible' => true, 'order' => 400, 'label' => 'Mes données', 'icon' => 'fas fa-angle-right', 'route' => 'ressource-rh', 'roles' => [ 'Personnel', ], ], ], // 'visible' => false, // 'pages' => [ // [ // 'order' => 1, // 'label' => 'Les corps, grades et status', // 'route' => 'ressource-rh/index-corps-grade-status', // 'privileges' => RessourceRhPrivileges::AFFICHER, // 'dropdown-header' => true, // 'icon' => 'fas fa-angle-right' // ], // ] ], 'ressource' => [ 'order' => 100, 'label' => 'Ressources RH', Loading Loading @@ -118,6 +180,14 @@ return [ 'title' => "Module Autoform", 'route' => 'autoform/formulaires', 'roles' => [], // 'withtarget' => true, 'icon' => 'fas fa-angle-right' ], 'fichier' => [ 'label' => "Fichier", 'title' => "Module Fichier", 'route' => 'index-fichier', 'roles' => [], // 'withtarget' => true, 'icon' => 'fas fa-angle-right' ], Loading Loading
config/application.config.php +1 Changes for config/application.config.php: 1 added line, 0 removed lines. Original line number Diff line number Diff line Loading @@ -5,6 +5,7 @@ $modules = [ 'BjyAuthorize', 'AssetManager', 'UnicaenApp', 'UnicaenAuth', 'UnicaenLdap', 'Autoform', 'Fichier', 'Mailing', 'Octopus', 'Utilisateur', Loading
config/autoload/unicaen-auth.global.php +1 −1 Changes for config/autoload/unicaen-auth.global.php: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -10,7 +10,7 @@ $settings = [ * Flag indiquant si l'utilisateur authenitifié avec succès via l'annuaire LDAP doit * être enregistré/mis à jour dans la table des utilisateurs de l'appli. */ 'save_ldap_user_in_database' => false, 'save_ldap_user_in_database' => true, 'enable_privileges' => true, Loading
module/Application/Module.php +21 Changes for module/Application/Module.php: 21 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -33,8 +33,29 @@ class Module } } ); $e->getApplication()->getEventManager()->getSharedManager()->attach( "*", 'authenticate.success', array($this, 'onUserLogin'), 100 ); } public function onUserLogin( $e ) { if (is_string($identity = $e->getIdentity())) { // login de l'utilisateur authentifié $username = $identity; //... } else { // id de l'utilisateur authentifié dans la table $id = $identity; //... } //... } public function getConfig() { $configInit = [ Loading
module/Application/config/merged/agent.config.php +33 Changes for module/Application/config/merged/agent.config.php: 33 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -4,6 +4,8 @@ namespace Application; use Application\Controller\Agent\AgentController; use Application\Controller\Agent\AgentControllerFactory; use Application\Controller\AgentFichier\AgentFichierController; use Application\Controller\AgentFichier\AgentFichierControllerFactory; use Application\Form\Agent\AgentForm; use Application\Form\Agent\AgentFormFactory; use Application\Form\Agent\AgentHydrator; Loading Loading @@ -61,6 +63,16 @@ return [ AgentPrivileges::EDITER, ], ], [ 'controller' => AgentFichierController::class, 'action' => [ 'index', 'upload' ], 'privileges' => [ AgentPrivileges::AFFICHER, ], ], ], ], ], Loading @@ -78,6 +90,26 @@ return [ ], 'may_terminate' => true, 'child_routes' => [ 'fichiers' => [ 'type' => Segment::class, 'options' => [ 'route' => '/fichiers[/:agent]', 'defaults' => [ 'controller' => AgentFichierController::class, 'action' => 'index', ], ], ], 'upload-fichier' => [ 'type' => Segment::class, 'options' => [ 'route' => '/upload-fichier/:agent/:nature', 'defaults' => [ 'controller' => AgentFichierController::class, 'action' => 'upload', ], ], ], 'afficher' => [ 'type' => Segment::class, 'options' => [ Loading Loading @@ -153,6 +185,7 @@ return [ 'controllers' => [ 'factories' => [ AgentController::class => AgentControllerFactory::class, AgentFichierController::class => AgentFichierControllerFactory::class, ], ], 'form_elements' => [ Loading
module/Application/config/merged/menu.config.php +70 Changes for module/Application/config/merged/menu.config.php: 70 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -18,6 +18,68 @@ return [ 'droits' => [ 'visible' => false, ], 'index-personnel' => [ // 'visible' => false, 'label' => 'Accueil', 'route' => 'index-personnel', 'roles' => [ 'Personnel' ], 'pages' => [ // 'index-personnel' => [ // 'visible' => true, // 'order' => 100, // 'label' => 'Mon accueil', // 'icon' => 'fas fa-angle-right', // 'route' => 'index-personnel', // 'roles' => [ // 'Personnel', // ], // ], 'entretien' => [ 'visible' => true, 'order' => 200, 'label' => 'Mes entretiens Pro.', 'icon' => 'fas fa-angle-right', 'route' => 'entretien-professionnel', 'roles' => [ 'Personnel', ], ], 'fichier' => [ 'visible' => true, 'order' => 300, 'label' => 'Mes fichiers', 'icon' => 'fas fa-angle-right', 'route' => 'agent/fichiers', 'roles' => [ 'Personnel', ], ], 'rgpd' => [ 'visible' => true, 'order' => 400, 'label' => 'Mes données', 'icon' => 'fas fa-angle-right', 'route' => 'ressource-rh', 'roles' => [ 'Personnel', ], ], ], // 'visible' => false, // 'pages' => [ // [ // 'order' => 1, // 'label' => 'Les corps, grades et status', // 'route' => 'ressource-rh/index-corps-grade-status', // 'privileges' => RessourceRhPrivileges::AFFICHER, // 'dropdown-header' => true, // 'icon' => 'fas fa-angle-right' // ], // ] ], 'ressource' => [ 'order' => 100, 'label' => 'Ressources RH', Loading Loading @@ -118,6 +180,14 @@ return [ 'title' => "Module Autoform", 'route' => 'autoform/formulaires', 'roles' => [], // 'withtarget' => true, 'icon' => 'fas fa-angle-right' ], 'fichier' => [ 'label' => "Fichier", 'title' => "Module Fichier", 'route' => 'index-fichier', 'roles' => [], // 'withtarget' => true, 'icon' => 'fas fa-angle-right' ], Loading