From 8e1018b4d56f7030e3d8a4c176302ae33e685072 Mon Sep 17 00:00:00 2001 From: Aleisha Amohia Date: Sun, 8 Oct 2023 21:59:19 +0000 Subject: [PATCH] Bug 35008: Make ILS-DI not require auth when OpacPublic disabled Content-Type: text/plain; charset=utf-8 To test, disable OpacPublic and ensure a call to ilsdi.pl will still return expected results from a private browser, not logged into the OPAC. Sponsored-by: Auckland University of Technology Signed-off-by: Katrin Fischer Signed-off-by: Marcel de Rooy --- C4/Auth.pm | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/C4/Auth.pm b/C4/Auth.pm index 90c028b270..c449c318a9 100644 --- a/C4/Auth.pm +++ b/C4/Auth.pm @@ -795,15 +795,16 @@ sub checkauth { if ( $type eq 'opac' && !C4::Context->preference("OpacPublic") ) { my @allowed_scripts_for_private_opac = qw( - opac-memberentry.tt - opac-registration-email-sent.tt - opac-registration-confirmation.tt - opac-memberentry-update-submitted.tt - opac-password-recovery.tt - opac-reset-password.tt + opac-memberentry.tt + opac-registration-email-sent.tt + opac-registration-confirmation.tt + opac-memberentry-update-submitted.tt + opac-password-recovery.tt + opac-reset-password.tt + ilsdi.tt ); $authnotrequired = 0 unless grep { $_ eq $template_name } - @allowed_scripts_for_private_opac; + @allowed_scripts_for_private_opac; } my $timeout = _timeout_syspref(); -- 2.30.2