diff --git a/htdocs/compta/export/index.php b/htdocs/compta/export/index.php index b5f61728650..84ee5e2554d 100644 --- a/htdocs/compta/export/index.php +++ b/htdocs/compta/export/index.php @@ -113,7 +113,7 @@ while (($file = readdir($handle))!==false) { if (is_readable($dir.$file) && is_file($dir.$file)) { - print ''.$file.''; + print ''.$file.''; print ''; } diff --git a/htdocs/document.php b/htdocs/document.php index 42c59be96a8..b5ed05286ad 100644 --- a/htdocs/document.php +++ b/htdocs/document.php @@ -101,6 +101,17 @@ if ($modulepart) } $original_file=$conf->compta->dir_output.'/'.$original_file; } + + // Wrapping pour les exports de compta + if ($modulepart == 'export_compta') + { + $user->getrights('compta'); + if ($user->rights->compta->ventilation->creer) + { + $accessallowed=1; + } + $original_file=$conf->compta->dir_output.'/'.$original_file; + } // Wrapping pour les societe if ($modulepart == 'societe')