Bug 36072: opac-request-article should check syspref
Note: This is handled now just like opac-reserve. Test plan: Disable ArticleRequests and hit the page. Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> (cherry picked from commit 8afcbe0bbb556cb19ff2e33e56cf3bcb8dd13d11) Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
parent
8b9fcdae28
commit
c4d3486511
1 changed files with 6 additions and 0 deletions
|
@ -33,6 +33,12 @@ use Try::Tiny;
|
|||
|
||||
my $cgi = CGI->new;
|
||||
|
||||
# If ArticleRequests is disabled, leave immediately
|
||||
if ( !C4::Context->preference('ArticleRequests') ) {
|
||||
print $cgi->redirect("/cgi-bin/koha/errors/404.pl");
|
||||
exit;
|
||||
}
|
||||
|
||||
my ( $template, $borrowernumber, $cookie ) = get_template_and_user(
|
||||
{
|
||||
template_name => "opac-request-article.tt",
|
||||
|
|
Loading…
Reference in a new issue