From 5d9aa40065c68cb5f837570b1d229f119ffeca81 Mon Sep 17 00:00:00 2001
From: Marc de Lima Lucio <68746600+marc-dll@users.noreply.github.com>
Date: Wed, 9 Jun 2021 12:40:34 +0200
Subject: [PATCH] FIX: holiday list: bad right for mass deletion
---
htdocs/holiday/list.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/htdocs/holiday/list.php b/htdocs/holiday/list.php
index 18df214f4c6..7e77ef45d35 100644
--- a/htdocs/holiday/list.php
+++ b/htdocs/holiday/list.php
@@ -381,7 +381,7 @@ if ($resql)
//'builddoc'=>$langs->trans("PDFMerge"),
//'presend'=>$langs->trans("SendByMail"),
);
- if ($user->rights->holiday->supprimer) $arrayofmassactions['predelete'] = ''.$langs->trans("Delete");
+ if ($user->rights->holiday->delete) $arrayofmassactions['predelete'] = ''.$langs->trans("Delete");
if (in_array($massaction, array('presend', 'predelete'))) $arrayofmassactions = array();
$massactionbutton = $form->selectMassAction('', $arrayofmassactions);