From 7524a5d82a4bafe21e6edd06e57577da45924ba9 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 17 Jun 2008 14:38:19 +0000 Subject: [PATCH] Patch Raphael --- 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 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