Ajout permissions sur les commandes fournisseurs
This commit is contained in:
parent
85933985b7
commit
44cb70a835
@ -476,6 +476,27 @@ class User
|
||||
$this->rights->contrat->desactiver = 1;
|
||||
}
|
||||
|
||||
if ($module == 'fournisseur' or $module == '')
|
||||
{
|
||||
if ($obj->fk_id == 181)
|
||||
$this->rights->fournisseur->commande->lire = 1;
|
||||
|
||||
if ($obj->fk_id == 182)
|
||||
$this->rights->fournisseur->commande->creer = 1;
|
||||
|
||||
if ($obj->fk_id == 183)
|
||||
$this->rights->fournisseur->commande->valider = 1;
|
||||
|
||||
if ($obj->fk_id == 184)
|
||||
$this->rights->fournisseur->commande->approuver = 1;
|
||||
|
||||
if ($obj->fk_id == 185)
|
||||
$this->rights->fournisseur->commande->commander = 1;
|
||||
|
||||
if ($obj->fk_id == 186)
|
||||
$this->rights->fournisseur->commande->cloturer = 1;
|
||||
}
|
||||
|
||||
$i++;
|
||||
}
|
||||
$this->db->free();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user