From 278a0963f7f03205a2e45daa0d0417a2c113d87c 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 (cherry picked from commit eb130f559ecc0a232adce9a8af0084a99d6e9a81) Signed-off-by: Fridolin Somers --- C4/Auth.pm | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/C4/Auth.pm b/C4/Auth.pm index cdc4ba8012..652a1d0ba3 100644 --- a/C4/Auth.pm +++ b/C4/Auth.pm @@ -796,15 +796,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