mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
commit
1e323b302e
|
|
@ -1699,7 +1699,7 @@ function dol_banner_tab($object, $paramid, $morehtml = '', $shownav = 1, $fieldi
|
|||
$maxvisiblephotos = 1;
|
||||
$showimage = 1;
|
||||
$entity = (empty($object->entity) ? $conf->entity : $object->entity);
|
||||
$showbarcode = empty($conf->barcode->enabled) ? 0 : ($object->barcode ? 1 : 0);
|
||||
$showbarcode = empty($conf->barcode->enabled) ? 0 : (empty($object->barcode) ? 0 : 1);
|
||||
if (!empty($conf->global->MAIN_USE_ADVANCED_PERMS) && empty($user->rights->barcode->lire_advance)) {
|
||||
$showbarcode = 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user