X-Git-Url: http://koha-dev.rot13.org:8081/gitweb/?a=blobdiff_plain;f=opac%2Fopac-shelves.pl;h=e17e95f6045096fcd6fd126e17b5c225652f6c5a;hb=5d6c092921919526ade501facb1220f8a108a08f;hp=abfcc8bcdfefba56de3ba7cf2076fa8139fe769b;hpb=873a3cb9bc265be3a5f95e5c481403eb311bffbd;p=koha_fer diff --git a/opac/opac-shelves.pl b/opac/opac-shelves.pl index abfcc8bcdf..e17e95f604 100755 --- a/opac/opac-shelves.pl +++ b/opac/opac-shelves.pl @@ -29,12 +29,8 @@ my ( $template, $loggedinuser, $cookie ) = get_template_and_user({ template_name => "opac-shelves.tmpl", query => $query, type => "opac", - authnotrequired => 1, + authnotrequired => ( C4::Context->preference("OpacPublic") ? 1 : 0 ), }); $template->param(listsview => 1); -# if $loggedinuser is not defined, set it to -1, which should -# not correspond to any real borrowernumber. -# FIXME: this is a hack to temporarily avoid changing several -# routines in C4::VirtualShelves and C4::VirtualShelves::page -# to deal with lists accessed during an anonymous OPAC session -shelfpage('opac', $query, $template, (defined($loggedinuser) ? $loggedinuser : -1), $cookie); + +shelfpage('opac', $query, $template, $loggedinuser, $cookie);