Bug 24878: Add auth check for copy-holidays
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 17 Mar 2020 10:37:12 +0000 (11:37 +0100)
committerHayley Mapley <hayleymapley@catalyst.net.nz>
Tue, 24 Mar 2020 01:14:34 +0000 (14:14 +1300)
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>

Signed-off-by: Joy Nelson <joy@bywatersolutions.com>
(cherry picked from commit 6ef4c45b845b67326e1b115f3c13986135c96222)

Signed-off-by: Hayley Mapley <hayleymapley@catalyst.net.nz>

tools/copy-holidays.pl

index 309f488..6e35451 100755 (executable)
@@ -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');