From 477384105f0a1127bf183252709cc2ea62fb7f8d Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 18 Aug 2019 19:25:36 +0200 Subject: [PATCH] FIX missing test on permission on button to delete ledger record --- htdocs/accountancy/bookkeeping/list.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/htdocs/accountancy/bookkeeping/list.php b/htdocs/accountancy/bookkeeping/list.php index 05561f4a9d5..e67b19991b0 100644 --- a/htdocs/accountancy/bookkeeping/list.php +++ b/htdocs/accountancy/bookkeeping/list.php @@ -855,10 +855,12 @@ print ""; print ''; // TODO Replace this with mass delete action -print '
' . "\n"; -print '' . $langs->trans("DeleteMvt") . ''; -print '
'; - +if ($user->rights->mouvements->creer) +{ + print '
' . "\n"; + print '' . $langs->trans("DeleteMvt") . ''; + print '
'; +} print '';