Skip to content
Snippets Groups Projects
Commit 07d0f457 authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Fix: files generated by mass action could not be loaded

parent d7f557c7
Branches
No related tags found
No related merge requests found
......@@ -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))
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment