diff options
| author | ivan <ivan> | 2008-03-16 04:00:33 +0000 |
|---|---|---|
| committer | ivan <ivan> | 2008-03-16 04:00:33 +0000 |
| commit | 59ec62fd155e6be5297272beb4d7c2966baa7e25 (patch) | |
| tree | 49021377783aac7c54be82d4c3d1622bf8ab4c96 /httemplate/elements/menu.html | |
| parent | 5e5e516a6c108142b078917b5558ca5cc7648f96 (diff) | |
hide customer search if user does not have "List customers" ACL, closes: RT#3105
Diffstat (limited to 'httemplate/elements/menu.html')
| -rw-r--r-- | httemplate/elements/menu.html | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/httemplate/elements/menu.html b/httemplate/elements/menu.html index 80c806886..c5769e0be 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' ]; |
