FIX Can't download delivery receipts (function

dol_check_secure_access_document)
This commit is contained in:
Laurent Destailleur 2017-03-22 19:49:58 +01:00
parent ea6daeb58b
commit 8199ac9f89

View File

@ -1725,9 +1725,8 @@ function dol_check_secure_access_document($modulepart,$original_file,$entity,$fu
}
$original_file=$conf->expedition->dir_output."/sending/".$original_file;
}
// Wrapping pour les bons de livraison
else if ($modulepart == 'livraison' && !empty($conf->livraison->dir_output))
if ($modulepart == 'livraison' && !empty($conf->expedition->dir_output))
{
if ($fuser->rights->expedition->livraison->lire || preg_match('/^specimen/i',$original_file))
{