From 81bf6ea59c23e3e9d47a6676ca57acfa25a9776b 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 --- 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.20.1