task #5306 security for import / export
This commit is contained in:
parent
fbc7b8ae8b
commit
2e66bc5cd4
4 changed files with 15 additions and 2 deletions
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
|||
7
html/admin/sql/patch/upgrade8.sql
Normal file
7
html/admin/sql/patch/upgrade8.sql
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
begin;
|
||||
|
||||
insert into action values (21,'Import et export des écritures d''ouverture');
|
||||
update version set val=9;
|
||||
|
||||
|
||||
commit;
|
||||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue