mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
Bug fix : export compta
This commit is contained in:
parent
9ab2a789bd
commit
e5689ac0de
|
|
@ -113,7 +113,7 @@ while (($file = readdir($handle))!==false)
|
|||
{
|
||||
if (is_readable($dir.$file) && is_file($dir.$file))
|
||||
{
|
||||
print '<tr><td><a href="'.DOL_URL_ROOT.'/document.php?file='.$dir.$file.'&type=text/plain">'.$file.'</a><td>';
|
||||
print '<tr><td><a href="'.DOL_URL_ROOT.'/document.php?modulepart=export_compta&file=export/'.$file.'&type=text/plain">'.$file.'</a><td>';
|
||||
|
||||
print '</tr>';
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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')
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user