diff --git a/htdocs/compta/prelevement/ligne.php b/htdocs/compta/prelevement/ligne.php
index 6eb5d8c7a83..ef5defdbd85 100644
--- a/htdocs/compta/prelevement/ligne.php
+++ b/htdocs/compta/prelevement/ligne.php
@@ -143,7 +143,7 @@ if ($_GET["id"])
dol_print_error($db);
}
- if ($_GET["action"] == 'rejet')
+ if ($_GET["action"] == 'rejet' && $user->rights->prelevement->bons->creer)
{
$html = new Form($db);
@@ -200,10 +200,14 @@ if ($_GET["id"])
if ($_GET["action"] == '')
{
- if ($bon->statut == 2 && $lipre->statut == 2)
+ if ($bon->statut == 2 && $lipre->statut == 2 && $user->rights->prelevement->bons->credit)
{
print "id\">".$langs->trans("StandingOrderReject")."";
}
+ else
+ {
+ print "".$langs->trans("StandingOrderReject")."";
+ }
}
print "";