pour accès export pdf des commandes, ajout prise en compte droits pour module commande

This commit is contained in:
Regis Houssin 2006-02-08 14:18:00 +00:00
parent 4f9f3e9a6b
commit 4b4d7faf73

View File

@ -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')