View | Details | Raw Unified | Return to bug 41057
Collapse All | Expand All

(-)a/opac/opac-illrequests.pl (-2 / +4 lines)
Lines 48-54 my $query = CGI->new; Link Here
48
our $params = $query->Vars();
48
our $params = $query->Vars();
49
49
50
# if illrequests is disabled, leave immediately
50
# if illrequests is disabled, leave immediately
51
if ( !C4::Context->preference('ILLModule') ) {
51
my $opac_backends = Koha::ILL::Request::Config->new->opac_available_backends();
52
if ( !C4::Context->preference('ILLModule')
53
    || ( $params->{backend} && !grep { $_ eq $params->{backend} } @$opac_backends ) )
54
{
52
    print $query->redirect("/cgi-bin/koha/errors/404.pl");
55
    print $query->redirect("/cgi-bin/koha/errors/404.pl");
53
    exit;
56
    exit;
54
}
57
}
55
- 

Return to bug 41057