diff --git a/htdocs/index.php b/htdocs/index.php index eed8832200c0c3b036104114116d7842093d148d..81d2d0990a3667023e0c071c84e682671debddca 100644 --- a/htdocs/index.php +++ b/htdocs/index.php @@ -142,9 +142,9 @@ 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->global->SOCIETE_DISABLE_CUSTOMERS), - ! empty($conf->societe->enabled) && $user->rights->societe->lire && empty($conf->global->SOCIETE_DISABLE_PROSPECTS), - ! empty($conf->fournisseur->enabled) && $user->rights->fournisseur->lire, + ! empty($conf->societe->enabled) && $user->rights->societe->lire && empty($conf->global->SOCIETE_DISABLE_CUSTOMERS_STATS), + ! empty($conf->societe->enabled) && $user->rights->societe->lire && empty($conf->global->SOCIETE_DISABLE_PROSPECTS_STATS), + ! empty($conf->fournisseur->enabled) && $user->rights->fournisseur->lire && empty($conf->global->SOCIETE_DISABLE_SUPPLIERS_STATS), ! empty($conf->adherent->enabled) && $user->rights->adherent->lire, ! empty($conf->product->enabled) && $user->rights->produit->lire, ! empty($conf->service->enabled) && $user->rights->service->lire,