diff options
-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> % } |