Loading CHANGELOG.md +9 −1 Original line number Diff line number Diff line Journal des modifications ========================= 1.2.1 () 1.2.2 (28/08/2019) ------------------ ### Corrections - Suppression des usages résiduels du privilège `InformationPrivileges::INFORMATION_FICHIER` qui n'existe plus. 1.2.1 (11/07/2019) ------------------ ### Ajout Loading config/autoload/version.global.php +3 −3 Original line number Diff line number Diff line Loading @@ -2,9 +2,9 @@ return [ 'unicaen-app' => [ 'app_infos' => [ 'version' => '1.2.1', 'date' => '11/07/2019', 'version' => '1.2.2', 'date' => '28/08/2019', ], ], 'comment' => 'Fichier généré le 11/07/2019 à 16:32:53 avec /home/gauthierb/workspace/sygal/bump-version', 'comment' => 'Fichier généré le 28/08/2019 à 10:51:03 avec /home/gauthierb/workspace/sygal/bump-version', ]; data/SQL/1.2.2/10_fichier_divers.sql 0 → 100644 +27 −0 Original line number Diff line number Diff line -- -- Insertions oubliées dans le script SQL de la version 1.2.1. -- -- Ajout des privilèges fichier-divers/* au profil 'ADMIN_TECH' insert into PROFIL_PRIVILEGE (PRIVILEGE_ID, PROFIL_ID) with data(categ, priv) as ( select 'fichier-divers', 'televerser' from dual union select 'fichier-divers', 'telecharger' from dual ) select p.id as PRIVILEGE_ID, profil.id as PROFIL_ID from data join PROFIL on profil.ROLE_ID in ('ADMIN_TECH') join CATEGORIE_PRIVILEGE cp on cp.CODE = data.categ join PRIVILEGE p on p.CATEGORIE_ID = cp.id and p.code = data.priv / -- Attribution (si pas déjà fait) des privilèges fichier-divers/* au rôle 'ADMIN_TECH' (grâce au profil). insert into ROLE_PRIVILEGE (ROLE_ID, PRIVILEGE_ID) SELECT r.id as ROLE_ID, p.ID as PRIVILEGE_ID from PROFIL_PRIVILEGE pp join profil on PROFIL.ID = pp.PROFIL_ID and profil.ROLE_ID in ('ADMIN_TECH') join PRIVILEGE p on p.id = pp.PRIVILEGE_ID join CATEGORIE_PRIVILEGE cp on cp.id = p.CATEGORIE_ID and cp.CODE = 'fichier-divers' join role r on r.CODE = PROFIL.ROLE_ID where not exists ( select * from ROLE_PRIVILEGE rp where rp.ROLE_ID = r.id and rp.PRIVILEGE_ID = p.id ); doc/release-notes/v1.2.2.md 0 → 100644 +20 −0 Original line number Diff line number Diff line # Version 1.2.2 ## 1. Sur le serveur d'application - Placez-vous dans le répertoire de l'application puis lancez la commande suivante pour installer la nouvelle version : ```bash git fetch --tags && git checkout --force 1.2.2 && \ bash ./install.sh ``` - Selon le moteur PHP que vous avez installé, rechargez le service, exemple : - php7.0-fpm : `service php7.0-fpm reload` - apache2-mod-php7.0 : `service apache2 reload` ## 2. Dans la base de données Exécuter les scripts SQL suivants dans l'ordre : - `data/SQL/1.2.2/10_fichier_divers.sql` No newline at end of file module/Information/config/module.config.php +10 −1 Original line number Diff line number Diff line <?php use Application\Entity\Db\Repository\DefaultEntityRepository; use Application\Provider\Privilege\FichierPrivileges; use Information\Controller\FichierController; use Information\Controller\InformationController; use Information\Controller\InformationControllerFactory; Loading Loading @@ -112,10 +113,18 @@ return [ 'action' => [ 'index', 'supprimer', ], 'privileges' => [ InformationPrivileges::INFORMATION_MODIFIER, ] ], [ 'controller' => FichierController::class, 'action' => [ 'telecharger', ], 'privileges' => [ InformationPrivileges::INFORMATION_FICHIER, FichierPrivileges::FICHIER_DIVERS_TELECHARGER, ] ], ], Loading Loading
CHANGELOG.md +9 −1 Original line number Diff line number Diff line Journal des modifications ========================= 1.2.1 () 1.2.2 (28/08/2019) ------------------ ### Corrections - Suppression des usages résiduels du privilège `InformationPrivileges::INFORMATION_FICHIER` qui n'existe plus. 1.2.1 (11/07/2019) ------------------ ### Ajout Loading
config/autoload/version.global.php +3 −3 Original line number Diff line number Diff line Loading @@ -2,9 +2,9 @@ return [ 'unicaen-app' => [ 'app_infos' => [ 'version' => '1.2.1', 'date' => '11/07/2019', 'version' => '1.2.2', 'date' => '28/08/2019', ], ], 'comment' => 'Fichier généré le 11/07/2019 à 16:32:53 avec /home/gauthierb/workspace/sygal/bump-version', 'comment' => 'Fichier généré le 28/08/2019 à 10:51:03 avec /home/gauthierb/workspace/sygal/bump-version', ];
data/SQL/1.2.2/10_fichier_divers.sql 0 → 100644 +27 −0 Original line number Diff line number Diff line -- -- Insertions oubliées dans le script SQL de la version 1.2.1. -- -- Ajout des privilèges fichier-divers/* au profil 'ADMIN_TECH' insert into PROFIL_PRIVILEGE (PRIVILEGE_ID, PROFIL_ID) with data(categ, priv) as ( select 'fichier-divers', 'televerser' from dual union select 'fichier-divers', 'telecharger' from dual ) select p.id as PRIVILEGE_ID, profil.id as PROFIL_ID from data join PROFIL on profil.ROLE_ID in ('ADMIN_TECH') join CATEGORIE_PRIVILEGE cp on cp.CODE = data.categ join PRIVILEGE p on p.CATEGORIE_ID = cp.id and p.code = data.priv / -- Attribution (si pas déjà fait) des privilèges fichier-divers/* au rôle 'ADMIN_TECH' (grâce au profil). insert into ROLE_PRIVILEGE (ROLE_ID, PRIVILEGE_ID) SELECT r.id as ROLE_ID, p.ID as PRIVILEGE_ID from PROFIL_PRIVILEGE pp join profil on PROFIL.ID = pp.PROFIL_ID and profil.ROLE_ID in ('ADMIN_TECH') join PRIVILEGE p on p.id = pp.PRIVILEGE_ID join CATEGORIE_PRIVILEGE cp on cp.id = p.CATEGORIE_ID and cp.CODE = 'fichier-divers' join role r on r.CODE = PROFIL.ROLE_ID where not exists ( select * from ROLE_PRIVILEGE rp where rp.ROLE_ID = r.id and rp.PRIVILEGE_ID = p.id );
doc/release-notes/v1.2.2.md 0 → 100644 +20 −0 Original line number Diff line number Diff line # Version 1.2.2 ## 1. Sur le serveur d'application - Placez-vous dans le répertoire de l'application puis lancez la commande suivante pour installer la nouvelle version : ```bash git fetch --tags && git checkout --force 1.2.2 && \ bash ./install.sh ``` - Selon le moteur PHP que vous avez installé, rechargez le service, exemple : - php7.0-fpm : `service php7.0-fpm reload` - apache2-mod-php7.0 : `service apache2 reload` ## 2. Dans la base de données Exécuter les scripts SQL suivants dans l'ordre : - `data/SQL/1.2.2/10_fichier_divers.sql` No newline at end of file
module/Information/config/module.config.php +10 −1 Original line number Diff line number Diff line <?php use Application\Entity\Db\Repository\DefaultEntityRepository; use Application\Provider\Privilege\FichierPrivileges; use Information\Controller\FichierController; use Information\Controller\InformationController; use Information\Controller\InformationControllerFactory; Loading Loading @@ -112,10 +113,18 @@ return [ 'action' => [ 'index', 'supprimer', ], 'privileges' => [ InformationPrivileges::INFORMATION_MODIFIER, ] ], [ 'controller' => FichierController::class, 'action' => [ 'telecharger', ], 'privileges' => [ InformationPrivileges::INFORMATION_FICHIER, FichierPrivileges::FICHIER_DIVERS_TELECHARGER, ] ], ], Loading