From 6a0f16e9aaf701309d4fc3da301f36c7f2b8a769 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Fri, 13 May 2016 20:39:31 +0200 Subject: [PATCH] FIX #5189 --- htdocs/product/card.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 ''; - if (($action != 'editbarcodetype') && ! empty($user->rights->barcode->creer)) print ''; + if (($action != 'editbarcodetype') && ! empty($user->rights->produit->creer) && $createbarcode) print ''; print '
'; print $langs->trans("BarcodeType"); print 'id.'">'.img_edit($langs->trans('Edit'),1).'id.'">'.img_edit($langs->trans('Edit'),1).'
'; print ''; if ($action == 'editbarcodetype') @@ -1456,7 +1456,7 @@ else print ''; - if (($action != 'editbarcode') && ! empty($user->rights->barcode->creer)) print ''; + if (($action != 'editbarcode') && ! empty($user->rights->produit->creer) && $createbarcode) print ''; print '
'; print $langs->trans("BarcodeValue"); print 'id.'">'.img_edit($langs->trans('Edit'),1).'id.'">'.img_edit($langs->trans('Edit'),1).'
'; print ''; if ($action == 'editbarcode')