From fdbdabb698b904cfb8cdc8befb87a76aa71642e9 Mon Sep 17 00:00:00 2001 From: ivan Date: Sun, 13 Jan 2008 20:57:36 +0000 Subject: ACLs --- httemplate/search/cust_bill_event.cgi | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) (limited to 'httemplate/search/cust_bill_event.cgi') 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!! } 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; -- cgit v1.2.1