Skip to content

Commit

Permalink
Fix: files generated by mass action could not be loaded
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Jul 23, 2016
1 parent d7f557c commit 07d0f45
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions htdocs/core/lib/files.lib.php
Expand Up @@ -1990,8 +1990,7 @@ function dol_check_secure_access_document($modulepart,$original_file,$entity,$fu
$original_file=$conf->facture->dir_output.'/'.$original_file;
$sqlprotectagainstexternals = "SELECT fk_soc as fk_soc FROM ".MAIN_DB_PREFIX."facture WHERE ref='".$db->escape($refname)."' AND entity=".$conf->entity;
}

else if ($modulepart == 'massfilesarea')
else if ($modulepart == 'massfilesarea_facture')
{
if ($fuser->rights->facture->lire || preg_match('/^specimen/i',$original_file))
{
Expand Down

0 comments on commit 07d0f45

Please sign in to comment.