X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fmisc%2Fprint_invoice_events.cgi;h=c974d5f4ef0fd86d32dc851a0d6d530ad4d23e56;hb=197e19d52c02f541850ca06f2628d86c2c3b9464;hp=c6a7885a4ed4ad6a6854efdbdf43ba8a6d8ac228;hpb=673b9a458d9138523026963df6fa3b4683e09bae;p=freeside.git diff --git a/httemplate/misc/print_invoice_events.cgi b/httemplate/misc/print_invoice_events.cgi index c6a7885a4..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'; -$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; + +