diff --git a/htdocs/includes/menus/barre_top/eldy_backoffice.php b/htdocs/includes/menus/barre_top/eldy_backoffice.php index 98168b88449..641cbbc0403 100644 --- a/htdocs/includes/menus/barre_top/eldy_backoffice.php +++ b/htdocs/includes/menus/barre_top/eldy_backoffice.php @@ -1,5 +1,6 @@ + * Copyright (C) 2007 Regis Houssin * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -159,10 +160,10 @@ class MenuTop { $class = 'class="tmenu"'; } - //if ($user->rights->fournisseur->lire) + if ($user->rights->fournisseur->lire) print 'atarget?" target=$this->atarget":"").'>'.$langs->trans("Suppliers").''; - //else - //print ''.$langs->trans("Suppliers").''; + else + print ''.$langs->trans("Suppliers").''; } @@ -181,7 +182,7 @@ class MenuTop { $class = 'class="tmenu"'; } - if ($user->rights->commercial->lire) + if ($user->rights->commercial->main->lire) print 'atarget?" target=$this->atarget":"").'>'.$langs->trans("Commercial").''; else print ''.$langs->trans("Commercial").'';