From 2c8da5703f65748fa446eb9180859afcd3aebade Mon Sep 17 00:00:00 2001 From: daraelmin Date: Fri, 7 May 2021 16:52:44 +0200 Subject: [PATCH] Fix Wrong test for permission in adherent car --- htdocs/adherents/card.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/adherents/card.php b/htdocs/adherents/card.php index 1bf575aeb8a..0d1c22c4e60 100644 --- a/htdocs/adherents/card.php +++ b/htdocs/adherents/card.php @@ -1891,7 +1891,7 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($action)) { }*/ // Modify - if (!$user->rights->adherent->creer) { + if ($user->rights->adherent->creer) { print ''.$langs->trans("Modify").''."\n"; } else { print ''.$langs->trans("Modify").''."\n";