Fix permission for external users

This commit is contained in:
Laurent Destailleur 2017-06-12 14:30:00 +02:00
parent bf41056c68
commit d7cbb598c1
3 changed files with 3 additions and 3 deletions

View File

@ -59,7 +59,7 @@ class box_clients extends ModeleBoxes
// disable box for such cases
if (! empty($conf->global->SOCIETE_DISABLE_CUSTOMERS)) $this->enabled=0; // disabled by this option
$this->hidden = ! ($user->rights->societe->lire);
$this->hidden = ! ($user->rights->societe->lire && empty($user->socid));
}
/**

View File

@ -55,7 +55,7 @@ class box_fournisseurs extends ModeleBoxes
$this->db=$db;
$this->hidden=! ($user->rights->societe->lire);
$this->hidden=! ($user->rights->societe->lire && empty($user->socid));
}
/**

View File

@ -61,7 +61,7 @@ class box_prospect extends ModeleBoxes
// disable box for such cases
if (! empty($conf->global->SOCIETE_DISABLE_PROSPECTS)) $this->enabled=0; // disabled by this option
$this->hidden=! ($user->rights->societe->lire);
$this->hidden=! ($user->rights->societe->lire && empty($user->socid));
}
/**