Merge pull request #3451 from atm-gauthier/3.8_fix_right_on_asksupplierprice

FIX : on asksupplierprice module, order creation button must be avail…
This commit is contained in:
Laurent Destailleur 2015-09-03 10:36:30 +02:00
commit cda681ac6a

View File

@ -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 '<div class="inline-block divButAction"><a class="butAction" href="' . DOL_URL_ROOT . '/fourn/commande/card.php?action=create&amp;origin=' . $object->element . '&amp;originid=' . $object->id . '&amp;socid=' . $object->socid . '">' . $langs->trans("AddOrder") . '</a></div>';
}
}