Loading data/SQL/privilege.sql +30 Changes for data/SQL/privilege.sql: 30 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -24,6 +24,36 @@ insert into ROLE_PRIVILEGE(ROLE_ID, PRIVILEGE_ID) ; -- -- Ajout de ROLE_PRIVILEGE_MODELE. -- INSERT INTO ROLE_PRIVILEGE_MODELE (ROLE_CODE, PRIVILEGE_ID) with data(role, priv) as ( select 'ADMIN', 'refresh-these' from dual union select 'ADMIN_TECH', 'refresh-these' from dual union select 'BU', 'refresh-these' from dual union select 'BDD', 'refresh-these' from dual ) select role, p.id from data join PRIVILEGE p on p.code = data.priv ; -- -- Application des modèles (ceux pas déjà appliqués). -- insert into ROLE_PRIVILEGE (ROLE_ID, PRIVILEGE_ID) SELECT r.id, p.ID from ROLE_PRIVILEGE_MODELE rpm join role r on r.CODE = rpm.ROLE_CODE join PRIVILEGE p on p.id = rpm.PRIVILEGE_ID where not exists ( select * from ROLE_PRIVILEGE rp where rp.ROLE_ID = r.id and rp.PRIVILEGE_ID = p.id ); -- -- Mise en conformité brutale entre 2 bdd des CATEGORIE_PRIVILEGE, PRIVILEGE, ROLE_PRIVILEGE. -- Loading docker-compose.yml +2 −3 Changes for docker-compose.yml: 2 added lines, 3 removed lines. Original line number Diff line number Diff line Loading @@ -9,10 +9,9 @@ services: - "8000:80" - "443:443" volumes: - .:/var/www/html/sygal - /var/sygal-files:/var/sygal-files - .:/var/www/sygal - /tmp:/tmp working_dir: /var/www/html/sygal working_dir: /var/www/sygal network_mode: bridge sygal-import-ws: Loading docker/apache-site-ssl.conf +2 −2 Changes for docker/apache-site-ssl.conf: 2 added lines, 2 removed lines. Original line number Diff line number Diff line <VirtualHost *:443> ServerName localhost DocumentRoot /var/www/html/sygal/public DocumentRoot /var/www/sygal/public SetEnv APPLICATION_ENV "development" RewriteEngine On <Directory /var/www/html/sygal/public> <Directory /var/www/sygal/public> DirectoryIndex index.php AllowOverride All Require all granted Loading docker/apache-site.conf +1 −1 Changes for docker/apache-site.conf: 1 added line, 1 removed line. Original line number Diff line number Diff line <VirtualHost *:80> ServerName localhost DocumentRoot /var/www/html/sygal/public DocumentRoot /var/www/sygal/public RewriteEngine On Loading module/Application/config/others/these.config.php +20 Changes for module/Application/config/others/these.config.php: 20 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -52,6 +52,7 @@ return [ ThesePrivileges::THESE_SAISIE_CONFORMITE_VERSION_ARCHIVAGE_INITIALE, ThesePrivileges::THESE_SAISIE_CONFORMITE_VERSION_ARCHIVAGE_CORRIGEE, ThesePrivileges::THESE_SAISIE_RDV_BU, // ThesePrivileges::THESE_REFRESH, ], 'resources' => ['These'], 'assertion' => 'Assertion\\These', Loading Loading @@ -95,6 +96,13 @@ return [ 'privileges' => ThesePrivileges::THESE_CONSULTATION_FICHE, 'assertion' => 'Assertion\\These', ], [ 'controller' => 'Application\Controller\These', 'action' => [ 'refresh-these', ], 'privileges' => ThesePrivileges::THESE_REFRESH, ], [ 'controller' => 'Application\Controller\These', 'action' => [ Loading Loading @@ -347,6 +355,18 @@ return [ ], ], ], 'refresh-these' => [ 'type' => 'Segment', 'options' => [ 'route' => '/refresh/:these', 'constraints' => [ 'these' => '\d+', ], 'defaults' => [ 'action' => 'refresh-these', ], ], ], 'version-papier' => [ 'type' => 'Segment', 'options' => [ Loading Loading
data/SQL/privilege.sql +30 Changes for data/SQL/privilege.sql: 30 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -24,6 +24,36 @@ insert into ROLE_PRIVILEGE(ROLE_ID, PRIVILEGE_ID) ; -- -- Ajout de ROLE_PRIVILEGE_MODELE. -- INSERT INTO ROLE_PRIVILEGE_MODELE (ROLE_CODE, PRIVILEGE_ID) with data(role, priv) as ( select 'ADMIN', 'refresh-these' from dual union select 'ADMIN_TECH', 'refresh-these' from dual union select 'BU', 'refresh-these' from dual union select 'BDD', 'refresh-these' from dual ) select role, p.id from data join PRIVILEGE p on p.code = data.priv ; -- -- Application des modèles (ceux pas déjà appliqués). -- insert into ROLE_PRIVILEGE (ROLE_ID, PRIVILEGE_ID) SELECT r.id, p.ID from ROLE_PRIVILEGE_MODELE rpm join role r on r.CODE = rpm.ROLE_CODE join PRIVILEGE p on p.id = rpm.PRIVILEGE_ID where not exists ( select * from ROLE_PRIVILEGE rp where rp.ROLE_ID = r.id and rp.PRIVILEGE_ID = p.id ); -- -- Mise en conformité brutale entre 2 bdd des CATEGORIE_PRIVILEGE, PRIVILEGE, ROLE_PRIVILEGE. -- Loading
docker-compose.yml +2 −3 Changes for docker-compose.yml: 2 added lines, 3 removed lines. Original line number Diff line number Diff line Loading @@ -9,10 +9,9 @@ services: - "8000:80" - "443:443" volumes: - .:/var/www/html/sygal - /var/sygal-files:/var/sygal-files - .:/var/www/sygal - /tmp:/tmp working_dir: /var/www/html/sygal working_dir: /var/www/sygal network_mode: bridge sygal-import-ws: Loading
docker/apache-site-ssl.conf +2 −2 Changes for docker/apache-site-ssl.conf: 2 added lines, 2 removed lines. Original line number Diff line number Diff line <VirtualHost *:443> ServerName localhost DocumentRoot /var/www/html/sygal/public DocumentRoot /var/www/sygal/public SetEnv APPLICATION_ENV "development" RewriteEngine On <Directory /var/www/html/sygal/public> <Directory /var/www/sygal/public> DirectoryIndex index.php AllowOverride All Require all granted Loading
docker/apache-site.conf +1 −1 Changes for docker/apache-site.conf: 1 added line, 1 removed line. Original line number Diff line number Diff line <VirtualHost *:80> ServerName localhost DocumentRoot /var/www/html/sygal/public DocumentRoot /var/www/sygal/public RewriteEngine On Loading
module/Application/config/others/these.config.php +20 Changes for module/Application/config/others/these.config.php: 20 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -52,6 +52,7 @@ return [ ThesePrivileges::THESE_SAISIE_CONFORMITE_VERSION_ARCHIVAGE_INITIALE, ThesePrivileges::THESE_SAISIE_CONFORMITE_VERSION_ARCHIVAGE_CORRIGEE, ThesePrivileges::THESE_SAISIE_RDV_BU, // ThesePrivileges::THESE_REFRESH, ], 'resources' => ['These'], 'assertion' => 'Assertion\\These', Loading Loading @@ -95,6 +96,13 @@ return [ 'privileges' => ThesePrivileges::THESE_CONSULTATION_FICHE, 'assertion' => 'Assertion\\These', ], [ 'controller' => 'Application\Controller\These', 'action' => [ 'refresh-these', ], 'privileges' => ThesePrivileges::THESE_REFRESH, ], [ 'controller' => 'Application\Controller\These', 'action' => [ Loading Loading @@ -347,6 +355,18 @@ return [ ], ], ], 'refresh-these' => [ 'type' => 'Segment', 'options' => [ 'route' => '/refresh/:these', 'constraints' => [ 'these' => '\d+', ], 'defaults' => [ 'action' => 'refresh-these', ], ], ], 'version-papier' => [ 'type' => 'Segment', 'options' => [ Loading