X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;ds=sidebyside;f=httemplate%2Felements%2Fmenu.html;h=0c74746b7f0067668bf6f60efd8f8bc40de95963;hb=737b7470eed9fc4079a32216a54a003fbf075204;hp=f43fca1bbb80df4ca4ef07828dc47d16214fa147;hpb=9464e3517fcae6a735c14b3fb15b91f3886a884a;p=freeside.git diff --git a/httemplate/elements/menu.html b/httemplate/elements/menu.html index f43fca1bb..0c74746b7 100644 --- a/httemplate/elements/menu.html +++ b/httemplate/elements/menu.html @@ -70,9 +70,9 @@ tie my %report_customers_search, 'Tie::IxHash'; $report_customers_search{'by ordering employee'} = [ $fsurl. 'search/cust_main-otaker.cgi' ] if $curuser->access_right('Configuration'); -tie my %report_customers, 'Tie::IxHash', - 'List customers' => [ \%report_customers_lists, 'List customers' ], -; +tie my %report_customers, 'Tie::IxHash'; +$report_customers{'List customers'} = [ \%report_customers_lists, 'List customers' ] + if $curuser->access_right('List customers'); $report_customers{'Search customers'} = [ \%report_customers_search, 'Search customers' ] if keys %report_customers_search; $report_customers{'Zip code distribution'} = [ $fsurl. 'search/report_cust_main-zip.html', 'Zip codes by number of customers' ];