diff --git a/htdocs/fourn/facture/card.php b/htdocs/fourn/facture/card.php index 2a1f1dab8bcc9..d91f341b278be 100644 --- a/htdocs/fourn/facture/card.php +++ b/htdocs/fourn/facture/card.php @@ -870,7 +870,7 @@ $action = ''; } - elseif ($action == 'classin') + elseif ($action == 'classin' && $user->rights->fournisseur->facture->creer) { $object->fetch($id); $result=$object->setProject($projectid); @@ -1844,7 +1844,9 @@ print '
'; print $langs->trans('PaymentConditions'); print ' | '; - if ($action != 'editconditions') print ' | id.'">'.img_edit($langs->trans('SetConditions'),1).' | '; + if ($action != 'editconditions' && $user->rights->fournisseur->facture->creer) { + print 'id.'">'.img_edit($langs->trans('SetConditions'),1).' | '; + } print '
'; print $langs->trans('PaymentMode'); print ' | '; - if ($action != 'editmode') print 'id.'">'.img_edit($langs->trans('SetMode'),1).' | '; + if ($action != 'editmode' && $user->rights->fournisseur->facture->creer) { + print 'id.'">'.img_edit($langs->trans('SetMode'),1).' | '; + } print '
'; print $langs->trans('Project'); print ' | '; - if ($action != 'classify') + if ($action != 'classify' && $user->rights->fournisseur->facture->creer) { print 'id.'">'; print img_edit($langs->trans('SetProject'),1); |