From d11770c07881940090a9b274556c046a477f6ac5 Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Fri, 20 Apr 2018 12:56:01 +0000 Subject: [PATCH] Bug 20400: (QA follow-up) Redirect to 404 if routing is disabled --- opac/opac-routing-lists.pl | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/opac/opac-routing-lists.pl b/opac/opac-routing-lists.pl index 2dc09c6..331cc4d 100644 --- a/opac/opac-routing-lists.pl +++ b/opac/opac-routing-lists.pl @@ -24,6 +24,13 @@ use C4::Output; use Koha::Patrons; my $query = new CGI; + +unless ( C4::Context->preference('RoutingSerials') ) { + print $query->redirect("/cgi-bin/koha/errors/404.pl"); + exit; +} + + my ( $template, $borrowernumber, $cookie ) = get_template_and_user( { template_name => "opac-routing-lists.tt", -- 2.1.4