Fix api to download for shipments
This commit is contained in:
parent
abf8bc2b92
commit
9f2c6f3f33
@ -2647,7 +2647,7 @@ function dol_check_secure_access_document($modulepart, $original_file, $entity,
|
||||
}
|
||||
$original_file = $conf->accounting->dir_output.'/'.$original_file;
|
||||
} // Wrapping pour les expedition
|
||||
elseif ($modulepart == 'expedition' && !empty($conf->expedition->dir_output))
|
||||
elseif (($modulepart == 'expedition' || $modulepart == 'shipment') && !empty($conf->expedition->dir_output))
|
||||
{
|
||||
if ($fuser->rights->expedition->{$lire} || preg_match('/^specimen/i', $original_file))
|
||||
{
|
||||
@ -2655,7 +2655,7 @@ function dol_check_secure_access_document($modulepart, $original_file, $entity,
|
||||
}
|
||||
$original_file = $conf->expedition->dir_output."/sending/".$original_file;
|
||||
} // Delivery Note Wrapping
|
||||
elseif ($modulepart == 'delivery' && !empty($conf->expedition->dir_output))
|
||||
elseif (($modulepart == 'livraison' || $modulepart == 'delivery') && !empty($conf->expedition->dir_output))
|
||||
{
|
||||
if ($fuser->rights->expedition->delivery->{$lire} || preg_match('/^specimen/i', $original_file))
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user