summaryrefslogtreecommitdiff
path: root/httemplate/misc/email_invoices.cgi
diff options
context:
space:
mode:
Diffstat (limited to 'httemplate/misc/email_invoices.cgi')
-rw-r--r--httemplate/misc/email_invoices.cgi11
1 files changed, 8 insertions, 3 deletions
diff --git a/httemplate/misc/email_invoices.cgi b/httemplate/misc/email_invoices.cgi
index 6c2103f7b..78ca0f67d 100644
--- a/httemplate/misc/email_invoices.cgi
+++ b/httemplate/misc/email_invoices.cgi
@@ -1,4 +1,9 @@
-%
-%my $server = new FS::UI::Web::JSRPC 'FS::cust_bill::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::process_reemail', $cgi;
+
+</%init>