From 8afe35139657659aac1e671bd8e5b6ce497165e5 Mon Sep 17 00:00:00 2001 From: Chris Cormack Date: Tue, 11 Mar 2014 10:51:00 +1300 Subject: [PATCH] Bug 11715: Set the default of authnotrequired = 0 in get_template_and_user To test: Verify that pages in the OPAC and staff interface display correctly. Note that there are cases where 'authnotrequired' was not passed at all to get_template_and_user, so there may be pages that start requiring authentication. Whether that is correct or not depends on context. Follow up patches are to remove all the unnessecary setting of this value, so that the only places we set are when we do want authnotrequired=1 Signed-off-by: Kyle M Hall Signed-off-by: Katrin Fischer Signed-off-by: Galen Charlton Signed-off-by: Jonathan Druart Signed-off-by: Tomas Cohen Arazi (cherry picked from commit 0599c9b6e9a509c375d5d19e4a64653cbbf14f5e) Signed-off-by: Fridolin Somers Conflicts: C4/Auth.pm --- C4/Auth.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/C4/Auth.pm b/C4/Auth.pm index 44edf67ce2..0230b516a3 100644 --- a/C4/Auth.pm +++ b/C4/Auth.pm @@ -139,6 +139,7 @@ sub get_template_and_user { my $in = shift; my ( $user, $cookie, $sessionID, $flags ); + $in->{'authnotrequired'} ||= 0; my $template = C4::Templates::gettemplate( $in->{'template_name'}, $in->{'type'}, -- 2.39.5