X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fmisc%2Fprint-invoice.cgi;h=aeef6879507edb445dbe609ed5277e09b1183e17;hb=3d2e1d9b5d1883f768f5a90e0dfaae7cc9a41367;hp=6a4c2d7f14d2cb832df3c9178406f27f0e40c19f;hpb=673b9a458d9138523026963df6fa3b4683e09bae;p=freeside.git diff --git a/httemplate/misc/print-invoice.cgi b/httemplate/misc/print-invoice.cgi index 6a4c2d7f1..aeef68795 100755 --- a/httemplate/misc/print-invoice.cgi +++ b/httemplate/misc/print-invoice.cgi @@ -1,4 +1,8 @@ -<% +<% $cgi->redirect("${p}view/cust_main.cgi?$custnum") %> +<%init> + +die "access denied" + unless $FS::CurrentUser::CurrentUser->access_right('Resend invoices'); #untaint invnum my($query) = $cgi->keywords; @@ -12,6 +16,4 @@ $cust_bill->print($template); my $custnum = $cust_bill->getfield('custnum'); -print $cgi->redirect("${p}view/cust_main.cgi?$custnum"); - -%> +