diff --git a/htdocs/product/card.php b/htdocs/product/card.php index 92d8a7f4288..d9863792546 100644 --- a/htdocs/product/card.php +++ b/htdocs/product/card.php @@ -1435,7 +1435,7 @@ else print '
| '; print $langs->trans("BarcodeType"); print ' | '; - if (($action != 'editbarcodetype') && ! empty($user->rights->barcode->creer)) print 'id.'">'.img_edit($langs->trans('Edit'),1).' | '; + if (($action != 'editbarcodetype') && ! empty($user->rights->produit->creer) && $createbarcode) print 'id.'">'.img_edit($langs->trans('Edit'),1).' | '; print '
| '; print $langs->trans("BarcodeValue"); print ' | '; - if (($action != 'editbarcode') && ! empty($user->rights->barcode->creer)) print 'id.'">'.img_edit($langs->trans('Edit'),1).' | '; + if (($action != 'editbarcode') && ! empty($user->rights->produit->creer) && $createbarcode) print 'id.'">'.img_edit($langs->trans('Edit'),1).' | '; print '