Fix CI
This commit is contained in:
parent
1c52426b90
commit
1bd6757e62
1 changed files with 2 additions and 2 deletions
|
|
@ -2759,7 +2759,7 @@ function dol_check_secure_access_document($modulepart, $original_file, $entity,
|
|||
if ($fuser->hasRight('expensereport', $lire) || $fuser->hasRight('expensereport', 'readall') || preg_match('/^specimen/i', $original_file)) {
|
||||
$accessallowed = 1;
|
||||
// If we known $id of expensereport, call checkUserAccessToObject to check permission on properties and hierarchy of expense report
|
||||
if ($refname && !$fuser->hasRights('expensereport', 'readall') && !preg_match('/^specimen/i', $original_file)) {
|
||||
if ($refname && !$fuser->hasRight('expensereport', 'readall') && !preg_match('/^specimen/i', $original_file)) {
|
||||
include_once DOL_DOCUMENT_ROOT.'/expensereport/class/expensereport.class.php';
|
||||
$tmpexpensereport = new ExpenseReport($db);
|
||||
$tmpexpensereport->fetch('', $refname);
|
||||
|
|
@ -3003,7 +3003,7 @@ function dol_check_secure_access_document($modulepart, $original_file, $entity,
|
|||
$sqlprotectagainstexternals = "SELECT fk_soc as fk_soc FROM ".MAIN_DB_PREFIX."propal WHERE ref='".$db->escape($refname)."' AND entity IN (".getEntity('propal').")";
|
||||
} elseif (($modulepart == 'commande' || $modulepart == 'order') && !empty($conf->commande->multidir_output[$entity])) {
|
||||
// Wrapping pour les commandes
|
||||
if ($fuser->hasRights('commande', $lire) || preg_match('/^specimen/i', $original_file)) {
|
||||
if ($fuser->hasRight('commande', $lire) || preg_match('/^specimen/i', $original_file)) {
|
||||
$accessallowed = 1;
|
||||
}
|
||||
$original_file = $conf->commande->multidir_output[$entity].'/'.$original_file;
|
||||
|
|
|
|||
Loading…
Reference in a new issue