Fix bad management of option SOCIETE_DISABLE_PROSPECTS and
SOCIETE_DISABLE_CUSTOMERS
This commit is contained in:
parent
23dd6b8388
commit
ef7061a575
@ -147,8 +147,8 @@ if (empty($user->societe_id))
|
||||
// Condition to be checked for each display line dashboard
|
||||
$conditions=array(
|
||||
$user->rights->user->user->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->societe->enabled) && $user->rights->societe->lire && empty($conf->global->SOCIETE_DISABLE_CUSTOMERS) && empty($conf->global->SOCIETE_DISABLE_CUSTOMERS_STATS),
|
||||
! empty($conf->societe->enabled) && $user->rights->societe->lire && empty($conf->global->SOCIETE_DISABLE_PROSPECTS) && 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,
|
||||
@ -157,8 +157,8 @@ if (empty($user->societe_id))
|
||||
! empty($conf->commande->enabled) && $user->rights->commande->lire,
|
||||
! empty($conf->facture->enabled) && $user->rights->facture->lire,
|
||||
! empty($conf->contrat->enabled) && $user->rights->contrat->activer,
|
||||
! empty($conf->fournisseur->enabled) && $user->rights->fournisseur->commande->lire,
|
||||
! empty($conf->fournisseur->enabled) && $user->rights->fournisseur->facture->lire,
|
||||
! empty($conf->fournisseur->enabled) && $user->rights->fournisseur->commande->lire && empty($conf->global->SOCIETE_DISABLE_SUPPLIERS_ORDERS_STATS),
|
||||
! empty($conf->fournisseur->enabled) && $user->rights->fournisseur->facture->lire && empty($conf->global->SOCIETE_DISABLE_SUPPLIERS_INVOICES_STATS),
|
||||
! empty($conf->expensereport->enabled) && $user->rights->expensereport->lire);
|
||||
// Class file containing the method load_state_board for each line
|
||||
$includes=array(
|
||||
|
||||
Loading…
Reference in New Issue
Block a user