From b9b3e5ca29ead430d1876316b62f62e4e27d6e6f Mon Sep 17 00:00:00 2001 From: Anthony Berton Date: Thu, 25 Aug 2022 08:51:39 +0200 Subject: [PATCH] Correction droit --- htdocs/core/lib/product.lib.php | 2 +- htdocs/product/list.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/core/lib/product.lib.php b/htdocs/core/lib/product.lib.php index 5b1d5ba91d0..1bf7955bbd9 100644 --- a/htdocs/core/lib/product.lib.php +++ b/htdocs/core/lib/product.lib.php @@ -38,7 +38,7 @@ function product_prepare_head($object) $langs->load("products"); $label = $langs->trans('Product'); - $usercancreadprice = getDolGlobalString('MAIN_USE_ADVANCED_PERMS')?$user->hasRight('product', 'product_advance', 'read_prices'):$user->hasRight('produit', 'lire'); + $usercancreadprice = getDolGlobalString('MAIN_USE_ADVANCED_PERMS')?$user->hasRight('product', 'product_advance', 'read_prices'):$user->hasRight('product', 'lire'); if ($object->isService()) { $label = $langs->trans('Service'); diff --git a/htdocs/product/list.php b/htdocs/product/list.php index 2c3351b69ac..ae0e28576d5 100644 --- a/htdocs/product/list.php +++ b/htdocs/product/list.php @@ -1359,7 +1359,7 @@ if ($resql) { } } - $usercancreadprice = getDolGlobalString('MAIN_USE_ADVANCED_PERMS')?$user->hasRight('product', 'product_advance', 'read_prices'):$user->hasRight('produit', 'lire'); + $usercancreadprice = getDolGlobalString('MAIN_USE_ADVANCED_PERMS')?$user->hasRight('product', 'product_advance', 'read_prices'):$user->hasRight('product', 'lire'); if ($product_static->isService()) { $usercancreadprice = getDolGlobalString('MAIN_USE_ADVANCED_PERMS')?$user->hasRight('service', 'service_advance', 'read_prices'):$user->hasRight('service', 'lire'); }