Revert "Fix remove a line that look useless"

This reverts commit 1610926ccd.
This commit is contained in:
Laurent Destailleur
2017-03-10 13:14:02 +01:00
parent 1610926ccd
commit 3f69b1fdf5

View File

@@ -1935,8 +1935,7 @@ function dol_check_secure_access_document($modulepart,$original_file,$entity,$fu
$original_file=$conf->$modulepart->dir_output.'/'.$original_file;
}
}
//if (preg_match('/^specimen/i',$original_file)) $accessallowed=1; // If link to a specimen
if (preg_match('/^specimen/i',$original_file)) $accessallowed=1; // If link to a specimen
if ($fuser->admin) $accessallowed=1; // If user is admin
// For modules who wants to manage different levels of permissions for documents