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(