diff options
author | Ivan Kohler <ivan@freeside.biz> | 2015-07-06 23:13:34 -0700 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2015-07-06 23:13:34 -0700 |
commit | 5e9677cbad2051ea452b389fa03bddf37166c590 (patch) | |
tree | 5e2e302e7fc3e3375e25d85e2fa6e1131fa962bb | |
parent | 5b3ee07ca4807250d9e7ab258fa1ef7cb33cfe12 (diff) |
hide the old typeset statements with a non-default (and not added on upgrade) ACL, RT#34078
-rw-r--r-- | httemplate/view/cust_main/payment_history.html | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/httemplate/view/cust_main/payment_history.html b/httemplate/view/cust_main/payment_history.html index e5bcc5ca9..db2cf4f23 100644 --- a/httemplate/view/cust_main/payment_history.html +++ b/httemplate/view/cust_main/payment_history.html @@ -158,10 +158,12 @@ <BR> % } -% if ( $num_cust_bill > 0 ) { - <A HREF="<% $p %>view/cust_main_statement-pdf.cgi?<% $custnum %>"><% - mt('Download typeset statement PDF') |h %></A> - <BR> +% if ( $num_cust_bill > 0 +% && $curuser->access_right('View legacy typeset statements') +% ) { + <A HREF="<% $p %>view/cust_main_statement-pdf.cgi?<% $custnum %>"><% + mt('Download typeset statement PDF') |h %></A> + <BR> % } <A HREF="<% $p %>search/report_cust_bill.html?custnum=<% $custnum %>"><% mt('Invoice reports') |h %></A> % } |