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