diff --git a/html/admin/sql/patch/upgrade5.sql b/html/admin/sql/patch/upgrade5.sql index 1135886b2..1b89eef3f 100644 --- a/html/admin/sql/patch/upgrade5.sql +++ b/html/admin/sql/patch/upgrade5.sql @@ -90,7 +90,7 @@ insert into parameter (pr_id) values ('MY_CP'); insert into parameter (pr_id) values ('MY_COMMUNE'); insert into parameter (pr_id) values ('MY_TVA'); insert into parameter (pr_id) values ('MY_STREET'); -insert into parameter (pr_id) values ('MY_NUMMER'); +insert into parameter (pr_id) values ('MY_NUMBER'); -update version set val=6; \ No newline at end of file +update version set val=6; diff --git a/html/bilan.php b/html/bilan.php index b892651a3..06ff8d4e5 100644 --- a/html/bilan.php +++ b/html/bilan.php @@ -34,10 +34,14 @@ $User->Check(); // TODO a specific level of security for the "bilan" ??? // Change must be done here if ( $User->admin == 0 ) { - if (CheckAction($_SESSION['g_dossier'],$_SESSION['g_user'],IMP) == 0 ){ + if ($User->CheckAction($cn,IMP) + ==0 + ) + { /* Cannot Access */ NoAccess(); } + } // A rtf file is generated @@ -130,4 +134,4 @@ while ( !feof($bnb_rtf) ) { }// rtf file is read -?> \ No newline at end of file +?> diff --git a/html/listing_client.php b/html/listing_client.php index 4be6c6d43..b8ee629d3 100644 --- a/html/listing_client.php +++ b/html/listing_client.php @@ -31,12 +31,10 @@ $User->Check(); // TODO a specific level of security for the "bilan" ??? // Change must be done here -if ( $User->admin == 0 ) { - if (CheckAction($_SESSION['g_dossier'],$_SESSION['g_user'],IMP) == 0 ){ +if ($User->CheckAction($cn,IMP) == 0 ){ /* Cannot Access */ NoAccess(); } -} header('Content-type: application/bin'); header('Content-Disposition: attachment;filename="declaration.bin"',FALSE); diff --git a/include/impress_bilan.php b/include/impress_bilan.php index a648abe28..a45721b06 100644 --- a/include/impress_bilan.php +++ b/include/impress_bilan.php @@ -33,7 +33,7 @@ $ret=make_array($cn,"select fr_id,fr_label $w=new widget("select"); $w->table=1; -echo '