From db8df90ea8452752272d1418ee2e30d0b773896d Mon Sep 17 00:00:00 2001 From: Nicolas Domenech Date: Thu, 20 Feb 2025 14:46:02 +0100 Subject: [PATCH] Fix #33160 dol_check_secure_access_document bad value for productlot --- htdocs/core/lib/files.lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/core/lib/files.lib.php b/htdocs/core/lib/files.lib.php index 24d223c02cc..6f1fe961852 100644 --- a/htdocs/core/lib/files.lib.php +++ b/htdocs/core/lib/files.lib.php @@ -3296,7 +3296,7 @@ function dol_check_secure_access_document($modulepart, $original_file, $entity, } elseif (isModEnabled("service")) { $original_file = $conf->service->multidir_output[$entity].'/'.$original_file; } - } elseif ($modulepart == 'product_batch' || $modulepart == 'produitlot') { + } elseif ($modulepart == 'product_batch' || $modulepart == 'productlot') { // Wrapping pour les lots produits if (empty($entity) || (empty($conf->productbatch->multidir_output[$entity]))) { return array('accessallowed' => 0, 'error' => 'Value entity must be provided');