From dd95d82afbd432312bd241a4abd9f8e53f883ae3 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Tue, 13 Jul 2004 16:10:32 +0000 Subject: [PATCH] Ajout des permissions sur les societes --- htdocs/user.class.php | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) 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();