X-Git-Url: http://koha-dev.rot13.org:8081/gitweb/?a=blobdiff_plain;f=opac%2Fopac-showreviews.pl;h=f1e0b5320d4e6fa5f402fe1a8a9d0bf1206dbf35;hb=937f27e6191f7080acc23c3122f1569e1ea2c024;hp=19693b0c46643baade831e0c0f7861eb8385ffd8;hpb=718473bdd2f156544e7f254fa7adce2890c51e2a;p=koha_gimpoz diff --git a/opac/opac-showreviews.pl b/opac/opac-showreviews.pl index 19693b0c46..f1e0b5320d 100755 --- a/opac/opac-showreviews.pl +++ b/opac/opac-showreviews.pl @@ -14,9 +14,9 @@ # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR # A PARTICULAR PURPOSE. See the GNU General Public License for more details. # -# You should have received a copy of the GNU General Public License along with -# Koha; if not, write to the Free Software Foundation, Inc., 59 Temple Place, -# Suite 330, Boston, MA 02111-1307 USA +# You should have received a copy of the GNU General Public License along +# with Koha; if not, write to the Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. use strict; use warnings; @@ -52,7 +52,7 @@ my ( $template, $borrowernumber, $cookie ) = &get_template_and_user( template_name => $template_name, query => $query, type => "opac", - authnotrequired => 1, + authnotrequired => ( C4::Context->preference("OpacPublic") ? 1 : 0 ), } );