X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fmisc%2Femail_invoice_events.cgi;h=d65fe172bffa12ebf63971e7a43609e3a49cb7be;hp=ba6e72c1a0fc9b07edb75aafb32b022615baa3ca;hb=75e11f1d1a5ced24496b5732e290f7762403feb8;hpb=c8cccb4a92adceb943c635fe62dad0d034462ce0 diff --git a/httemplate/misc/email_invoice_events.cgi b/httemplate/misc/email_invoice_events.cgi index ba6e72c1a..d65fe172b 100644 --- a/httemplate/misc/email_invoice_events.cgi +++ b/httemplate/misc/email_invoice_events.cgi @@ -1,4 +1,9 @@ -% -%my $server = new FS::UI::Web::JSRPC 'FS::cust_bill_event::process_reemail', $cgi; -% <% $server->process %> +<%init> + +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; + +