From 2df60c38c92da73eab477c402ce80c1db673d7ae Mon Sep 17 00:00:00 2001
From: Regis Houssin <regis@dolibarr.fr>
Date: Sun, 11 Nov 2007 18:16:03 +0000
Subject: [PATCH] =?UTF-8?q?Fix:=20on=20fait=20apparaitre=20les=20cat=E9gor?=
 =?UTF-8?q?ies=20fournisseurs=20si=20le=20module=20fournisseur=20est=20act?=
 =?UTF-8?q?iv=E9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 htdocs/includes/menus/barre_left/eldy_backoffice.php | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/htdocs/includes/menus/barre_left/eldy_backoffice.php b/htdocs/includes/menus/barre_left/eldy_backoffice.php
index 4d36cb1bda9..687ee9ef794 100644
--- a/htdocs/includes/menus/barre_left/eldy_backoffice.php
+++ b/htdocs/includes/menus/barre_left/eldy_backoffice.php
@@ -237,10 +237,13 @@ class MenuLeft {
 				{
 					$langs->load("categories");
 					// Cat�gories fournisseurs
-					$newmenu->add(DOL_URL_ROOT."/categories/index.php?leftmenu=cat&amp;type=1", $langs->trans("SuppliersCategoriesShort"), 0, $user->rights->categorie->lire);
-					if ($user->societe_id == 0)
+					if ($conf->fournisseur->enabled
 					{
-						$newmenu->add_submenu(DOL_URL_ROOT."/categories/fiche.php?action=create&amp;type=1", $langs->trans("NewCat"), 1, $user->rights->categorie->creer);
+						$newmenu->add(DOL_URL_ROOT."/categories/index.php?leftmenu=cat&amp;type=1", $langs->trans("SuppliersCategoriesShort"), 0, $user->rights->categorie->lire);
+						if ($user->societe_id == 0)
+						{
+							$newmenu->add_submenu(DOL_URL_ROOT."/categories/fiche.php?action=create&amp;type=1", $langs->trans("NewCat"), 1, $user->rights->categorie->creer);
+						}
 					}
 					// Cat�gories clients
 					$newmenu->add(DOL_URL_ROOT."/categories/index.php?leftmenu=cat&amp;type=2", $langs->trans("CustomersCategoriesShort"), 0, $user->rights->categorie->lire);
-- 
GitLab