From c2c394ed8d23f5ee222857542ce94a188aaafce9 Mon Sep 17 00:00:00 2001 From: Gauthier Date: Wed, 2 Sep 2015 11:07:30 +0200 Subject: [PATCH] FIX : on asksupplierprice module, order creation button must be available if user is allowed to create supplier order and not if he's allowed to create customer order --- htdocs/comm/askpricesupplier/card.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/comm/askpricesupplier/card.php b/htdocs/comm/askpricesupplier/card.php index 3fe244c7396..110d52b7328 100644 --- a/htdocs/comm/askpricesupplier/card.php +++ b/htdocs/comm/askpricesupplier/card.php @@ -1664,7 +1664,7 @@ if ($action == 'create') // Create an order if (! empty($conf->commande->enabled) && $object->statut == 2) { - if ($user->rights->commande->creer) { + if ($user->rights->fournisseur->commande->creer) { print '
' . $langs->trans("AddOrder") . '
'; } }