diff --git a/htdocs/includes/menus/barre_top/eldy_backoffice.php b/htdocs/includes/menus/barre_top/eldy_backoffice.php index 91102dba39c..5c913915795 100644 --- a/htdocs/includes/menus/barre_top/eldy_backoffice.php +++ b/htdocs/includes/menus/barre_top/eldy_backoffice.php @@ -183,7 +183,10 @@ class MenuTop { $class = 'class="tmenu"'; } - print 'atarget?" target=$this->atarget":"").'>'.$langs->trans("Commercial").''; + if($user->rights->societe->lire) + print 'atarget?" target=$this->atarget":"").'>'.$langs->trans("Commercial").''; + else + print ''.$langs->trans("Commercial").''; } // Financial diff --git a/htdocs/includes/menus/barre_top/eldy_frontoffice.php b/htdocs/includes/menus/barre_top/eldy_frontoffice.php index f4cc04ff689..baef9bb8148 100644 --- a/htdocs/includes/menus/barre_top/eldy_frontoffice.php +++ b/htdocs/includes/menus/barre_top/eldy_frontoffice.php @@ -182,7 +182,10 @@ class MenuTop { $class = 'class="tmenu"'; } - print 'atarget?" target=$this->atarget":"").'>'.$langs->trans("Commercial").''; + if($user->rights->societe->lire) + print 'atarget?" target=$this->atarget":"").'>'.$langs->trans("Commercial").''; + else + print ''.$langs->trans("Commercial").''; } // Financial