From 0401445e0fa04f133384ff1221f5dfd661d5794e Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Sun, 17 Apr 2005 15:41:28 +0000 Subject: [PATCH] Gestion des expeditions --- htdocs/document.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/htdocs/document.php b/htdocs/document.php index 41104a4e1ec..abb03ae5948 100644 --- a/htdocs/document.php +++ b/htdocs/document.php @@ -109,6 +109,17 @@ if ($modulepart) $original_file=$conf->societe->dir_output.'/'.$original_file; } + // Wrapping pour les expedition + if ($modulepart == 'expedition') + { + $user->getrights('expedition'); + if ($user->rights->expedition->lire) + { + $accessallowed=1; + } + $original_file=$conf->expedition->dir_output.'/'.$original_file; + } + // Wrapping pour la telephonie if ($modulepart == 'telephonie') {