summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xhttemplate/view/cust_bill.cgi5
1 files changed, 4 insertions, 1 deletions
diff --git a/httemplate/view/cust_bill.cgi b/httemplate/view/cust_bill.cgi
index c95e01dc4..d9525750c 100755
--- a/httemplate/view/cust_bill.cgi
+++ b/httemplate/view/cust_bill.cgi
@@ -98,7 +98,10 @@ function areyousure(href, message) {
<A HREF="<% $p %>misc/send-invoice.cgi?method=print;<% $link %>"><% mt('Print this invoice') |h %></A>
% }
-% if ( $curuser->access_right('Print and mail invoices') ) {
+% if ( $conf->exists('support-key')
+% && $curuser->access_right('Print and mail invoices')
+% )
+% {
| <& /elements/popup_link.html,
'action' => $p."misc/post_fsinc-invoice.cgi?$link",
'label' => 'Print and mail this invoice online',