Fix: files generated by mass action could not be loaded
This commit is contained in:
parent
d7f557c7ed
commit
07d0f457b4
@ -1990,8 +1990,7 @@ function dol_check_secure_access_document($modulepart,$original_file,$entity,$fu
|
|||||||
$original_file=$conf->facture->dir_output.'/'.$original_file;
|
$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;
|
$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_facture')
|
||||||
else if ($modulepart == 'massfilesarea')
|
|
||||||
{
|
{
|
||||||
if ($fuser->rights->facture->lire || preg_match('/^specimen/i',$original_file))
|
if ($fuser->rights->facture->lire || preg_match('/^specimen/i',$original_file))
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user