From 5e9677cbad2051ea452b389fa03bddf37166c590 Mon Sep 17 00:00:00 2001 From: Ivan Kohler Date: Mon, 6 Jul 2015 23:13:34 -0700 Subject: [PATCH] hide the old typeset statements with a non-default (and not added on upgrade) ACL, RT#34078 --- httemplate/view/cust_main/payment_history.html | 10 ++++++---- 1 file 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 @@
% } -% if ( $num_cust_bill > 0 ) { - <% - mt('Download typeset statement PDF') |h %> -
+% if ( $num_cust_bill > 0 +% && $curuser->access_right('View legacy typeset statements') +% ) { + <% + mt('Download typeset statement PDF') |h %> +
% } <% mt('Invoice reports') |h %> % } -- 2.11.0