[Koha-patches] [PATCH] Bug 4289: OpacPublic prevents login into OPAC

Ian Walls ian.walls at bywatersolutions.com
Fri Jan 21 23:11:51 CET 2011


If OpacPublic is set to Public, opac-user.pl does not ask for authentication, and takes the patron to a
null OPAC summary page.
---
 opac/opac-user.pl |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/opac/opac-user.pl b/opac/opac-user.pl
index e1e50cf..634b77a 100755
--- a/opac/opac-user.pl
+++ b/opac/opac-user.pl
@@ -47,7 +47,7 @@ my ( $template, $borrowernumber, $cookie ) = get_template_and_user(
         template_name   => "opac-user.tmpl",
         query           => $query,
         type            => "opac",
-        authnotrequired => ( C4::Context->preference("OpacPublic") ? 1 : 0 ),
+        authnotrequired => 0,
         flagsrequired   => { borrow => 1 },
         debug           => 1,
     }
-- 
1.5.6.5



More information about the Koha-patches mailing list