From 9ab2fb3856f4cede9cf5ea40ad35f3af8b953c51 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vincent=20de=20Grandpr=C3=A9?= Date: Tue, 4 Apr 2023 15:31:06 -0400 Subject: [PATCH] Edit button now available on subscription card when Bank module disabled. --- htdocs/adherents/subscription/card.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 '"; } else { - print '"; + print '"; } }