diff --git a/htdocs/fourn/class/fournisseur.product.class.php b/htdocs/fourn/class/fournisseur.product.class.php
index 484fa462c1a5d..5a259070df15b 100644
--- a/htdocs/fourn/class/fournisseur.product.class.php
+++ b/htdocs/fourn/class/fournisseur.product.class.php
@@ -1128,12 +1128,12 @@ public function getSocNomUrl($withpicto = 0, $option = 'supplier', $maxlen = 0,
public function display_price_product_fournisseur($showunitprice = 1, $showsuptitle = 1, $maxlen = 0, $notooltip = 0, $productFournList = array())
{
// phpcs:enable
- global $conf, $langs;
+ global $conf, $langs, $user;
$out = '';
$langs->load("suppliers");
if (count($productFournList) > 0) {
- $out .= '
';
+ $out .= '';
$out .= ''.($showunitprice ? $langs->trans("Price").' '.$langs->trans("HT") : '').' | ';
$out .= ''.($showunitprice ? $langs->trans("QtyMin") : '').' | ';
$out .= ''.$langs->trans("Supplier").' | ';
@@ -1146,9 +1146,12 @@ public function display_price_product_fournisseur($showunitprice = 1, $showsupti
}
$out .= '
';
} else {
- $out = ($showunitprice ? price($this->fourn_unitprice * (1 - $this->fourn_remise_percent / 100) + $this->fourn_remise, 0, $langs, 1, -1, -1, $conf->currency).' '.$langs->trans("HT").' (' : '');
- $out .= ($showsuptitle ? ''.$langs->trans("Supplier").': ' : '').$this->getSocNomUrl(1, 'supplier', $maxlen, $notooltip).' / '.$langs->trans("SupplierRef").': '.$this->ref_supplier;
- $out .= ($showunitprice ? ')' : '');
+ $out = ($showunitprice ? price($this->fourn_unitprice * (1 - $this->fourn_remise_percent / 100) + $this->fourn_remise, 0, $langs, 1, -1, -1, $conf->currency).' '.$langs->trans("HT") : '');
+ if ($user->hasRight("fournisseur", "read")) { // Without permission, never show the best supplier seller
+ $out .= ($showunitprice ? ' (' : '');
+ $out .= ($showsuptitle ? ''.$langs->trans("Supplier").': ' : '').$this->getSocNomUrl(1, 'supplier', $maxlen, $notooltip).' / '.$langs->trans("SupplierRef").': '.$this->ref_supplier;
+ $out .= ($showunitprice ? ')' : '');
+ }
}
return $out;
}