diff --git a/html/admin/setup.php b/html/admin/setup.php index b04725b3b..1f3a0667e 100644 --- a/html/admin/setup.php +++ b/html/admin/setup.php @@ -450,6 +450,12 @@ if (DEBUG == 'false' ) ob_start(); ExecSql($db,"select setval('s_grpt',$M,true)"); } } // version == 7 + //-- + // update to the version 9 + //-- + if ( GetVersion($db) == 8 ) { + ExecuteScript($db,'sql/patch/upgrade8.sql'); + } // version == 7 if ( DEBUG == 'false') ob_end_clean(); } diff --git a/html/admin/sql/patch/upgrade8.sql b/html/admin/sql/patch/upgrade8.sql new file mode 100644 index 000000000..d44f51017 --- /dev/null +++ b/html/admin/sql/patch/upgrade8.sql @@ -0,0 +1,7 @@ +begin; + +insert into action values (21,'Import et export des écritures d''ouverture'); +update version set val=9; + + +commit; diff --git a/html/ecrit_ouv.php b/html/ecrit_ouv.php index 5ddef755d..fb26aa643 100644 --- a/html/ecrit_ouv.php +++ b/html/ecrit_ouv.php @@ -38,7 +38,7 @@ include_once ("user_menu.php"); ShowMenuCompta($_SESSION['g_dossier']); // TODO : add a check for permission -if ( $User->CheckAction($cn,GJRN) == 0 ) { +if ( $User->CheckAction($cn,EXP_IMP_ECR) == 0 ) { /* Cannot Access */ NoAccess(); exit -1; diff --git a/html/export_ouv.php b/html/export_ouv.php index 945f41df3..f1799a985 100644 --- a/html/export_ouv.php +++ b/html/export_ouv.php @@ -39,7 +39,7 @@ include_once ("user_menu.php"); $cn=DbConnect($_SESSION['g_dossier']); // TODO : add a check for permission -if ( $User->CheckAction($cn,GJRN) == 0 ) { +if ( $User->CheckAction($cn,EXP_IMP_ECR) == 0 ) { /* Cannot Access */ NoAccess(); exit -1;