mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
new : allow to show all logos on a table
This commit is contained in:
parent
c097ee5331
commit
e8ef2a8d8c
|
|
@ -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')) {
|
||||
|
|
@ -2374,6 +2374,10 @@ function dol_check_secure_access_document($modulepart, $original_file, $entity,
|
|||
$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 = 0;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user