From 2056eb42988b8b54fa72e4fd5541c5f23399a56c Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Fri, 26 Nov 2004 09:29:28 +0000 Subject: [PATCH] Modif permissions pour la gestion des contrats --- htdocs/user.class.php | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/htdocs/user.class.php b/htdocs/user.class.php index a008484167a..8821919e44c 100644 --- a/htdocs/user.class.php +++ b/htdocs/user.class.php @@ -461,6 +461,21 @@ class User } + if ($module == 'contrat' or $module == '') + { + if ($obj->fk_id == 161) + $this->rights->contrat->lire = 1; + + if ($obj->fk_id == 162) + $this->rights->contrat->creer = 1; + + if ($obj->fk_id == 163) + $this->rights->contrat->activer = 1; + + if ($obj->fk_id == 164) + $this->rights->contrat->desactiver = 1; + } + $i++; } $this->db->free();