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)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Thu, 26 Mar 2020 11:35:11 +0000 (11:35 +0000)
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

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');