diff options
Diffstat (limited to 'reports.cgi')
-rwxr-xr-x | reports.cgi | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/reports.cgi b/reports.cgi index edc7eb55b..01bbb50c7 100755 --- a/reports.cgi +++ b/reports.cgi @@ -77,7 +77,13 @@ if (!$product_name) { push(@datasets, $datasets); } + # We only want those products that the user has permissions for. + my @myproducts = ('-All-'); + # Extract product names from objects and add them to the list. + push( @myproducts, map { $_->name } @{$user->get_selectable_products} ); + $vars->{'datasets'} = \@datasets; + $vars->{'products'} = \@myproducts; print $cgi->header(); } |