From 135aed039dc172755b08d81240d3b2afa69cbcc0 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Fri, 10 Sep 2004 14:59:45 +0000 Subject: [PATCH] Nettoyage --- htdocs/user.class.php | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/htdocs/user.class.php b/htdocs/user.class.php index df873e57cc4..09caa999758 100644 --- a/htdocs/user.class.php +++ b/htdocs/user.class.php @@ -419,6 +419,18 @@ class User $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; + } + if ($module == 'caisse' or $module == '') { if ($obj->fk_id == 131) @@ -431,17 +443,7 @@ class User $this->rights->caisse->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++; }