Fix permission for external users
This commit is contained in:
parent
bf41056c68
commit
d7cbb598c1
@ -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));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@ -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));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@ -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));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Loading…
Reference in New Issue
Block a user