From 9589a12f3b21a33e77828103c4d2c64767d70c0e Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 23 Jan 2011 16:35:35 +0000 Subject: [PATCH] New: Add hidden option SOCIETE_DISABLE_PROSPECTS --- htdocs/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/index.php b/htdocs/index.php index 2e18bda6e6b..afc32bac3d2 100644 --- a/htdocs/index.php +++ b/htdocs/index.php @@ -134,7 +134,7 @@ if ($user->societe_id == 0) // Condition to be checked for each display line dashboard $conditions=array( ! empty($conf->societe->enabled) && $user->rights->societe->lire, - ! empty($conf->societe->enabled) && $user->rights->societe->lire, + ! empty($conf->societe->enabled) && $user->rights->societe->lire && empty($conf->global->SOCIETE_DISABLE_PROSPECTS), ! empty($conf->fournisseur->enabled) && $user->rights->fournisseur->lire, ! empty($conf->adherent->enabled) && $user->rights->adherent->lire, ! empty($conf->product->enabled) && $user->rights->produit->lire,