new : allow to show all logos on a table

This commit is contained in:
Sylvain Legrand 2022-02-25 09:33:08 +01:00 committed by Laurent Destailleur
parent 898087de7e
commit cb86224613

View File

@ -987,7 +987,7 @@ function dol_unescapefile($filename)
*/
function dolCheckVirus($src_file)
{
global $conf;
global $conf, $db;
if (!empty($conf->global->MAIN_ANTIVIRUS_COMMAND)) {
if (!class_exists('AntiVir')) {
@ -2371,6 +2371,10 @@ function dol_check_secure_access_document($modulepart, $original_file, $entity,
// Wrapping for users photos
$accessallowed = 1;
$original_file = $conf->user->dir_output.'/'.$original_file;
} elseif (($modulepart == 'companylogo') && !empty($conf->mycompany->dir_output)) {
// Wrapping for users logos
$accessallowed = 1;
$original_file = $conf->mycompany->dir_output.'/logos/'.$original_file;
} elseif ($modulepart == 'memberphoto' && !empty($conf->adherent->dir_output)) {
// Wrapping for members photos
$accessallowed = 1;