From 6ecba451a315fd2e83882a66b0fa09440b1ad9a7 Mon Sep 17 00:00:00 2001 From: Chris Cormack Date: Mon, 7 Jan 2008 17:19:43 -0600 Subject: [PATCH] Adding a call to check auth on opac-renew.pl Signed-off-by: Joshua Ferraro --- opac/opac-renew.pl | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/opac/opac-renew.pl b/opac/opac-renew.pl index d529d3d59f..66afc60d2e 100755 --- a/opac/opac-renew.pl +++ b/opac/opac-renew.pl @@ -6,9 +6,20 @@ use CGI; use C4::Circulation; +use C4::Auth; my $query = new CGI; +my ( $template, $borrowernumber, $cookie ) = get_template_and_user( + { + template_name => "opac-user.tmpl", + query => $query, + type => "opac", + authnotrequired => 0, + flagsrequired => { borrow => 1 }, + debug => 1, + } +); my $itemnumber = $query->param('item'); my $borrowernumber = $query->param("borrowernumber"); -- 2.39.5