31 |
|
|
32 |
// TODO a specific level of security for the "bilan" ??? |
// TODO a specific level of security for the "bilan" ??? |
33 |
// Change must be done here |
// Change must be done here |
34 |
if ( $User->admin == 0 ) { |
if ($User->CheckAction($cn,IMP) == 0 ){ |
|
if (CheckAction($_SESSION['g_dossier'],$_SESSION['g_user'],IMP) == 0 ){ |
|
35 |
/* Cannot Access */ |
/* Cannot Access */ |
36 |
NoAccess(); |
NoAccess(); |
37 |
} |
} |
|
} |
|
38 |
|
|
39 |
header('Content-type: application/bin'); |
header('Content-type: application/bin'); |
40 |
header('Content-Disposition: attachment;filename="declaration.bin"',FALSE); |
header('Content-Disposition: attachment;filename="declaration.bin"',FALSE); |