# Koha; if not, write to the Free Software Foundation, Inc., 59 Temple Place,
# Suite 330, Boston, MA 02111-1307 USA
-# $Id$
=head1 NAME
use CGI;
use C4::Koha;
use C4::Auth;
-use C4::Date;
-
+use C4::Dates qw/format_date/;
use C4::Context;
use C4::Auth;
use C4::Output;
}
my $subscription = GetSubscription($subscriptionid);
+if ($subscription->{'cannotedit'}){
+ warn "Attempt to renew subscription $subscriptionid by ".C4::Context->userenv->{'id'}." not allowed";
+ print $query->redirect("/cgi-bin/koha/serials/subscription-detail.pl?subscriptionid=$subscriptionid");
+}
$template->param(
startdate => format_date(