X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fmisc%2Femail_invoice_events.cgi;h=d65fe172bffa12ebf63971e7a43609e3a49cb7be;hb=c648976f0b7975f2328ebd7ba8c711fad0ca4195;hp=12d58d608f207b90041d8b7dc7f22977b01977de;hpb=673b9a458d9138523026963df6fa3b4683e09bae;p=freeside.git diff --git a/httemplate/misc/email_invoice_events.cgi b/httemplate/misc/email_invoice_events.cgi index 12d58d608..d65fe172b 100644 --- a/httemplate/misc/email_invoice_events.cgi +++ b/httemplate/misc/email_invoice_events.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_event::process_reemail', $cgi; + +