freeside inc. web services for address normalizaion and printing, RT#33849
authorIvan Kohler <ivan@freeside.biz>
Sun, 27 Mar 2016 09:56:30 +0000 (02:56 -0700)
committerIvan Kohler <ivan@freeside.biz>
Sun, 27 Mar 2016 09:56:30 +0000 (02:56 -0700)
httemplate/view/cust_bill.cgi

index c95e01d..d952575 100755 (executable)
@@ -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',