X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fmisc%2Femail_invoices.cgi;h=78ca0f67d6ecbb44c310e443f848bc13daf14772;hp=12d58d608f207b90041d8b7dc7f22977b01977de;hb=e803d5f00368e951f7a4b82d5d390b53c4a6c827;hpb=684a478c0f88e5bf6d1d3f32f4618089146b5709 diff --git a/httemplate/misc/email_invoices.cgi b/httemplate/misc/email_invoices.cgi index 12d58d608..78ca0f67d 100644 --- a/httemplate/misc/email_invoices.cgi +++ b/httemplate/misc/email_invoices.cgi @@ -1,6 +1,9 @@ -<% +<% $server->process %> +<%init> -my $server = new FS::UI::Web::JSRPC 'FS::cust_bill_event::process_reemail'; -$server->process; +die "access denied" + unless $FS::CurrentUser::CurrentUser->access_right('Resend invoices'); -%> +my $server = new FS::UI::Web::JSRPC 'FS::cust_bill::process_reemail', $cgi; + +