From f97f271fd2a4e68c4ec02b940f521d648867efb5 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 17 Mar 2020 11:37:12 +0100 Subject: [PATCH] Bug 24878: Add auth check for copy-holidays Signed-off-by: Nick Clemens Signed-off-by: Joy Nelson (cherry picked from commit 6ef4c45b845b67326e1b115f3c13986135c96222) Signed-off-by: Hayley Mapley --- tools/copy-holidays.pl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/copy-holidays.pl b/tools/copy-holidays.pl index 309f488dd0..6e35451226 100755 --- a/tools/copy-holidays.pl +++ b/tools/copy-holidays.pl @@ -30,6 +30,8 @@ use C4::Calendar; my $input = new CGI; my $dbh = C4::Context->dbh(); +checkauth($input, 0, {tools=> 'edit_calendar'}, 'intranet'); + my $branchcode = $input->param('branchcode'); my $from_branchcode = $input->param('from_branchcode'); -- 2.39.5