diff options
| author | Jonathan Prykop <jonathan@freeside.biz> | 2015-07-08 19:15:33 -0500 |
|---|---|---|
| committer | Jonathan Prykop <jonathan@freeside.biz> | 2015-07-08 21:12:17 -0500 |
| commit | c463320a7aa49cf01cd1d66b48739d4e9998dad6 (patch) | |
| tree | e87a44ed2bffe2f7e46449645e53e6d671116af1 /httemplate/misc/email-customer-statement.html | |
| parent | 37029cf228bef0fe95ff5dbc62e7fb989eadd328 (diff) | |
RT#34078: Payment History Report / Statement [backport of acl and preview fixes]
Diffstat (limited to 'httemplate/misc/email-customer-statement.html')
| -rw-r--r-- | httemplate/misc/email-customer-statement.html | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/httemplate/misc/email-customer-statement.html b/httemplate/misc/email-customer-statement.html index 65660f1be..92ce1c4d1 100644 --- a/httemplate/misc/email-customer-statement.html +++ b/httemplate/misc/email-customer-statement.html @@ -5,13 +5,17 @@ 'no_search_fields' => [ 'start_date', 'end_date' ], 'alternate_form' => $alternate_form, 'post_search_hook' => $post_search_hook, + 'acl' => $acl, + 'process_url' => 'process/email-customer-statement.html', ) %> <%init> +my $acl = 'Resend invoices'; + die "access denied" - unless $FS::CurrentUser::CurrentUser->access_right('View invoices'); + unless $FS::CurrentUser::CurrentUser->access_right($acl); my $alternate_form = sub { # this could maaaybe be a separate element, for cleanliness |
