X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fmisc%2Femail_invoices.cgi;h=78ca0f67d6ecbb44c310e443f848bc13daf14772;hp=0a39783950470d7e947dbf930a2e7c67f25d2ab4;hb=e803d5f00368e951f7a4b82d5d390b53c4a6c827;hpb=673b9a458d9138523026963df6fa3b4683e09bae diff --git a/httemplate/misc/email_invoices.cgi b/httemplate/misc/email_invoices.cgi index 0a3978395..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::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; + +