Skip to content

Commit

Permalink
Merge pull request #6760 from fappels/4.0_fix_download_delivery_doc
Browse files Browse the repository at this point in the history
Fix download delivery and donation document
  • Loading branch information
eldy committed May 5, 2017
2 parents 1096177 + 18981ab commit db8c4a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions htdocs/core/lib/files.lib.php
Expand Up @@ -2148,7 +2148,7 @@ function dol_check_secure_access_document($modulepart,$original_file,$entity,$fu
}

// Wrapping pour les bons de livraison
else if ($modulepart == 'livraison' && !empty($conf->livraison->dir_output))
else if ($modulepart == 'livraison' && !empty($conf->expedition->dir_output))
{
if ($fuser->rights->expedition->livraison->lire || preg_match('/^specimen/i',$original_file))
{
Expand Down Expand Up @@ -2199,7 +2199,7 @@ function dol_check_secure_access_document($modulepart,$original_file,$entity,$fu
}

// Wrapping pour les dons
else if ($modulepart == 'donation' && !empty($conf->donation->dir_output))
else if ($modulepart == 'donation' && !empty($conf->don->dir_output))
{
if ($fuser->rights->don->lire || preg_match('/^specimen/i',$original_file))
{
Expand Down

0 comments on commit db8c4a5

Please sign in to comment.