fix(expedition): add 'shipping' as valid modulepart alias in dol_check_secure_access_document (#37307)

Co-authored-by: f-hoedl <hoefla14@htl-kaindorf.ac.at>
This commit is contained in:
minimexat 2026-02-23 00:38:56 +01:00 committed by GitHub
parent 1a8f540dc8
commit e52c212a81
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -3465,7 +3465,7 @@ function dol_check_secure_access_document($modulepart, $original_file, $entity,
$accessallowed = 1;
}
$original_file = $conf->accounting->dir_output.'/'.$original_file;
} elseif (($modulepart == 'expedition' || $modulepart == 'shipment') && !empty($conf->expedition->dir_output)) {
} elseif (($modulepart == 'expedition' || $modulepart == 'shipment' || $modulepart == 'shipping') && !empty($conf->expedition->dir_output)) {
// Wrapping pour les expedition
if ($fuser->hasRight('expedition', $lire) || preg_match('/^specimen/i', $original_file)) {
$accessallowed = 1;