use user->hasRight

This commit is contained in:
Frédéric FRANCE
2023-02-14 22:56:12 +01:00
parent 9d6cf70010
commit ae48571135
34 changed files with 141 additions and 142 deletions

View File

@@ -3820,7 +3820,7 @@ class Commande extends CommonOrder
$label = implode($this->getTooltipContentArray($params));
$linkclose = '';
if (empty($notooltip) && $user->rights->commande->lire) {
if (empty($notooltip) && $user->hasRight('commande', 'lire')) {
if (!empty($conf->global->MAIN_OPTIMIZEFORTEXTBROWSER)) {
$label = $langs->trans("Order");
$linkclose .= ' alt="'.dol_escape_htmltag($label, 1).'"';