From 4b4d7faf735d21c0fdb46bef68fcaf19381f00bb Mon Sep 17 00:00:00 2001 From: Regis Houssin <regis@dolibarr.fr> Date: Wed, 8 Feb 2006 14:18:00 +0000 Subject: [PATCH] =?UTF-8?q?pour=20acc=C3=A8s=20export=20pdf=20des=20comman?= =?UTF-8?q?des,=20ajout=20prise=20en=20compte=20droits=20pour=20module=20c?= =?UTF-8?q?ommande?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/document.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/htdocs/document.php b/htdocs/document.php index b8091b8ef0c..9412dd18567 100644 --- a/htdocs/document.php +++ b/htdocs/document.php @@ -96,6 +96,16 @@ if ($modulepart) } $original_file=$conf->propal->dir_output.'/'.$original_file; } + // Wrapping pour les comandes + if ($modulepart == 'commande') + { + $user->getrights('commande'); + if ($user->rights->commande->lire) + { + $accessallowed=1; + } + $original_file=$conf->commande->dir_output.'/'.$original_file; + } // Wrapping pour les rapport de paiements if ($modulepart == 'facture_paiement') -- GitLab