X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fmisc%2Fprint_invoice_events.cgi;h=c974d5f4ef0fd86d32dc851a0d6d530ad4d23e56;hb=f1802f4b19c6741b50007b56bbac13af61012fe5;hp=3cf4cf7c875071445ccf4ab7dab68d28d843e0e4;hpb=5f155263a2c9837640d2fab0817d1f36b8cb3f8c;p=freeside.git diff --git a/httemplate/misc/print_invoice_events.cgi b/httemplate/misc/print_invoice_events.cgi index 3cf4cf7c8..c974d5f4e 100644 --- a/httemplate/misc/print_invoice_events.cgi +++ b/httemplate/misc/print_invoice_events.cgi @@ -1,6 +1,9 @@ -<% +<% $server->process %> +<%init> -my $server = new FS::UI::Web::JSRPC 'FS::cust_bill_event::process_reprint', $cgi; -$server->process; +die "access denied" + unless $FS::CurrentUser::CurrentUser->access_right('Resend invoices'); -%> +my $server = new FS::UI::Web::JSRPC 'FS::cust_bill_event::process_reprint', $cgi; + +