diff options
| author | ivan <ivan> | 2008-03-30 02:45:10 +0000 |
|---|---|---|
| committer | ivan <ivan> | 2008-03-30 02:45:10 +0000 |
| commit | 3a5d1ebeadc2c31eb70d3b7f16796bc6b7d99582 (patch) | |
| tree | 02ebb9367f8cccffb4c553271fb6909e95d061c6 /httemplate/search | |
| parent | 1c55c2f7b069bec5f64e2f69901cb34abbbef624 (diff) | |
don't show invoice resend and payment posting links if you can't do that anyway
Diffstat (limited to 'httemplate/search')
| -rwxr-xr-x | httemplate/search/cust_bill.html | 23 |
1 files changed, 13 insertions, 10 deletions
diff --git a/httemplate/search/cust_bill.html b/httemplate/search/cust_bill.html index 25a7ea051..2860f7a4d 100755 --- a/httemplate/search/cust_bill.html +++ b/httemplate/search/cust_bill.html @@ -213,15 +213,18 @@ function confirm_fax_process() { </SCRIPT>'; -my $menubar = [ - 'Print these invoices' => - "javascript:confirm_print_process()", - 'Email these invoices' => - "javascript:confirm_email_process()", - ]; - -push @$menubar, 'Fax these invoices' => - "javascript:confirm_fax_process()" - if $conf->exists('hylafax'); +my $menubar = []; + +if ( $FS::CurrentUser::CurrentUser->access_right('Resend invoices') ) { + + push @$menubar, 'Print these invoices' => + "javascript:confirm_print_process()", + 'Email these invoices' => + "javascript:confirm_email_process()"; + + push @$menubar, 'Fax these invoices' => + "javascript:confirm_fax_process()" + if $conf->exists('hylafax'); +} </%init> |
