task #5306 security for import / export

This commit is contained in:
sparkyx 2006-03-09 19:57:29 +00:00
parent fbc7b8ae8b
commit 2e66bc5cd4
4 changed files with 15 additions and 2 deletions

View file

@ -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();
}

View file

@ -0,0 +1,7 @@
begin;
insert into action values (21,'Import et export des écritures d''ouverture');
update version set val=9;
commit;

View file

@ -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;

View file

@ -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;