diff options
Diffstat (limited to 'httemplate/misc/email_events.cgi')
-rw-r--r-- | httemplate/misc/email_events.cgi | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/httemplate/misc/email_events.cgi b/httemplate/misc/email_events.cgi index c6efa7dc9..e7a0e77f8 100644 --- a/httemplate/misc/email_events.cgi +++ b/httemplate/misc/email_events.cgi @@ -1,4 +1,9 @@ -% -%my $server = new FS::UI::Web::JSRPC 'FS::cust_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_event::process_reemail', $cgi; + +</%init> |