From 580137e64c8b035874857e5cf20c9cc69ddabe68 Mon Sep 17 00:00:00 2001 From: Lucas Gass Date: Thu, 7 May 2026 21:59:17 +0000 Subject: [PATCH] Bug 37762: (RM follow-up) Update auth check for new Koha::Controller::Catalogue Signed-off-by: Lucas Gass --- xt/find-missing-auth_checks.t | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/xt/find-missing-auth_checks.t b/xt/find-missing-auth_checks.t index 3da6c9ad39..8a277ce8bc 100755 --- a/xt/find-missing-auth_checks.t +++ b/xt/find-missing-auth_checks.t @@ -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|; } }