stray closing /TABLE in the no-ticket case
[freeside.git] / httemplate / misc / email_invoices.cgi
index 490c42f..78ca0f6 100644 (file)
@@ -1,3 +1,9 @@
-<%
+<% $server->process %>
+<%init>
+
+die "access denied"
+  unless $FS::CurrentUser::CurrentUser->access_right('Resend invoices');
+
 my $server = new FS::UI::Web::JSRPC 'FS::cust_bill::process_reemail', $cgi;
-%><%= $server->process %>
+
+</%init>