diff options
| author | ivan <ivan> | 2008-01-13 20:57:36 +0000 |
|---|---|---|
| committer | ivan <ivan> | 2008-01-13 20:57:36 +0000 |
| commit | fdbdabb698b904cfb8cdc8befb87a76aa71642e9 (patch) | |
| tree | 7ab5d2a83009b55cc6c6655d809fe05bd26842a1 /httemplate/search/cust_bill_event.cgi | |
| parent | ec73e6774dd54d085d836f7da2ae772d2cfefee2 (diff) | |
ACLs
Diffstat (limited to 'httemplate/search/cust_bill_event.cgi')
| -rw-r--r-- | httemplate/search/cust_bill_event.cgi | 25 |
1 files changed, 15 insertions, 10 deletions
diff --git a/httemplate/search/cust_bill_event.cgi b/httemplate/search/cust_bill_event.cgi index 8f63d9cef..ff4168d6d 100644 --- a/httemplate/search/cust_bill_event.cgi +++ b/httemplate/search/cust_bill_event.cgi @@ -140,16 +140,21 @@ $html_init .= join("\n", map { qq!</FORM>! } qw( print_ email_ fax_ ) ); -my $menubar = [ - 'Re-print these events' => - "javascript:print_process()", - 'Re-email these events' => - "javascript:email_process()", - ]; - -push @$menubar, 'Re-fax these events' => - "javascript:fax_process()" - if $conf->exists('hylafax'); +my $menubar = []; + +if ( $curuser->access_right('Resend invoices') ) { + + push @$menubar, 'Re-print these events' => + "javascript:print_process()", + 'Re-email these events' => + "javascript:email_process()", + ; + + push @$menubar, 'Re-fax these events' => + "javascript:fax_process()" + if $conf->exists('hylafax'); + +} my $link_cust = sub { my $cust_bill_event = shift; |
