Bug 4289: OpacPublic prevents login into OPAC
authorIan Walls <ian.walls@bywatersolutions.com>
Fri, 21 Jan 2011 22:11:51 +0000 (17:11 -0500)
committerChris Cormack <chrisc@catalyst.net.nz>
Sun, 23 Jan 2011 18:18:50 +0000 (07:18 +1300)
If OpacPublic is set to Public, opac-user.pl does not ask for authentication, and takes the patron to a
null OPAC summary page.

Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
opac/opac-user.pl

index e1e50cf..634b77a 100755 (executable)
@@ -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,
     }