From 7cd10d94c24c8db735d210629463edb9027f6e5a Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 14 Jul 2008 23:31:48 +0000 Subject: [PATCH] Fix: Menu must be gray --- htdocs/includes/menus/barre_top/eldy_backoffice.php | 5 ++++- htdocs/includes/menus/barre_top/eldy_frontoffice.php | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/htdocs/includes/menus/barre_top/eldy_backoffice.php b/htdocs/includes/menus/barre_top/eldy_backoffice.php index 5c913915795..2b5befc5060 100644 --- a/htdocs/includes/menus/barre_top/eldy_backoffice.php +++ b/htdocs/includes/menus/barre_top/eldy_backoffice.php @@ -341,7 +341,10 @@ class MenuTop { $class = 'class="tmenu"'; } - print 'atarget?" target=$this->atarget":"").'>'.$langs->trans("MenuMembers").''; + if ($user->rights->adherent->lire) + print 'atarget?" target=$this->atarget":"").'>'.$langs->trans("MenuMembers").''; + else + print ''.$langs->trans("MenuMembers").''; } diff --git a/htdocs/includes/menus/barre_top/eldy_frontoffice.php b/htdocs/includes/menus/barre_top/eldy_frontoffice.php index baef9bb8148..10de5889305 100644 --- a/htdocs/includes/menus/barre_top/eldy_frontoffice.php +++ b/htdocs/includes/menus/barre_top/eldy_frontoffice.php @@ -306,7 +306,10 @@ class MenuTop { $class = 'class="tmenu"'; } - print 'atarget?" target=$this->atarget":"").'>'.$langs->trans("MenuMembers").''; + if ($user->rights->adherent->lire) + print 'atarget?" target=$this->atarget":"").'>'.$langs->trans("MenuMembers").''; + else + print ''.$langs->trans("MenuMembers").''; }