diff --git a/htdocs/user.class.php b/htdocs/user.class.php index f1c58f005b9..c7e5a8a064a 100644 --- a/htdocs/user.class.php +++ b/htdocs/user.class.php @@ -357,8 +357,20 @@ class User if ($obj->fk_id == 113) $this->rights->banque->configurer = 1; - } + + if ($module == 'societe' or $module == '') + { + if ($obj->fk_id == 121) + $this->rights->societe->lire = 1; + + if ($obj->fk_id == 122) + $this->rights->societe->creer = 1; + + if ($obj->fk_id == 129) + $this->rights->societe->supprimer = 1; + } + $i++; } $this->db->free();