From 4ea0fa2e95b6353616095af7f978d06f129fa590 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Mon, 10 Nov 2003 10:50:14 +0000 Subject: [PATCH] Ajout permissions sur les expeditions --- htdocs/user.class.php | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/htdocs/user.class.php b/htdocs/user.class.php index 1a6194a6833..ff0c6392767 100644 --- a/htdocs/user.class.php +++ b/htdocs/user.class.php @@ -288,6 +288,22 @@ class User $this->rights->commande->supprimer = 1; } + if ($module == 'expedition' or $module == '') + { + + if ($obj->fk_id == 81) + $this->rights->expedition->lire = 1; + + if ($obj->fk_id == 82) + $this->rights->expedition->creer = 1; + + if ($obj->fk_id == 84) + $this->rights->expedition->valider = 1; + + if ($obj->fk_id == 89) + $this->rights->expedition->supprimer = 1; + } + if ($module == 'adherent' or $module == '') {