diff --git a/htdocs/adherents/subscription/card.php b/htdocs/adherents/subscription/card.php index 7cbb187c319..86725b332f3 100644 --- a/htdocs/adherents/subscription/card.php +++ b/htdocs/adherents/subscription/card.php @@ -351,11 +351,11 @@ if ($rowid && $action != 'edit') { */ print '
'; - if ($user->rights->adherent->cotisation->creer) { - if (!empty($bankline->rappro)) { + if ($user->hasRight('adherent', 'cotisation', 'creer')) { + if (!empty($bankline->rappro) || empty($bankline)) { print '
'.$langs->trans("Modify")."
"; } else { - print '
".$langs->trans("Modify")."
"; + print '
'.$langs->trans("Modify")."
"; } }