From eb130f559ecc0a232adce9a8af0084a99d6e9a81 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 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 Signed-off-by: Tomas Cohen Arazi --- 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.39.5