diff --git a/htdocs/document.php b/htdocs/document.php
index b8091b8ef0c8b2d1188b15cbfe2ca213cb4a065d..9412dd18567c7a88e187cf76196c805c3359af21 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')