Bug 37762: (RM follow-up) Update auth check for new Koha::Controller::Catalogue

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
Lucas Gass 2026-05-07 21:59:17 +00:00
parent 3075f176e0
commit 580137e64c
No known key found for this signature in database
GPG Key ID: 60B447398B0D36CA
1 changed files with 4 additions and 1 deletions

View File

@ -33,7 +33,10 @@ FILE: foreach my $file (@files) {
chomp $file;
my @lines = read_file($file);
for my $line (@lines) {
for my $routine (qw( get_template_and_user check_cookie_auth checkauth check_api_auth C4::Service->init )) {
for my $routine (
qw( get_template_and_user check_cookie_auth checkauth check_api_auth C4::Service->init Koha::Controller::Catalogue->init )
)
{
next FILE if $line =~ m|^[^#]*$routine|;
}
}