From: Jonathan Druart Date: Tue, 17 Mar 2020 10:37:12 +0000 (+0100) Subject: Bug 24878: Add auth check for copy-holidays X-Git-Tag: v20.05.00~844 X-Git-Url: http://git.equinoxoli.org/?p=koha.git;a=commitdiff_plain;h=e87908078fe7866f6a31815d41e4c9409de57719 Bug 24878: Add auth check for copy-holidays Signed-off-by: Nick Clemens Signed-off-by: Martin Renvoize --- diff --git a/tools/copy-holidays.pl b/tools/copy-holidays.pl index 309f488..6e35451 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');