X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=rt%2Fshare%2Fhtml%2FDashboards%2FElements%2FListOfDashboards;h=8f7b4ae74b4095b501ccb0e1f6f03dbb34364393;hb=7322f2afedcc2f427e997d1535a503613a83f088;hp=a7398bcccd9ed5b758e1f10b8c8434121a512a48;hpb=f3c4966ed1f6ec3db7accd6dcdd3a5a3821d72a7;p=freeside.git diff --git a/rt/share/html/Dashboards/Elements/ListOfDashboards b/rt/share/html/Dashboards/Elements/ListOfDashboards index a7398bccc..8f7b4ae74 100644 --- a/rt/share/html/Dashboards/Elements/ListOfDashboards +++ b/rt/share/html/Dashboards/Elements/ListOfDashboards @@ -2,7 +2,7 @@ %# %# COPYRIGHT: %# -%# This software is Copyright (c) 1996-2012 Best Practical Solutions, LLC +%# This software is Copyright (c) 1996-2016 Best Practical Solutions, LLC %# %# %# (Except where explicitly superseded by other copyright notices) @@ -48,15 +48,15 @@ <%init> # put the list of dashboards into the navigation use RT::Dashboard; - -my @objs = RT::Dashboard->new($session{CurrentUser})->ObjectsForLoading( +my @objs = RT::Dashboard->new($User)->ObjectsForLoading( IncludeSuperuserGroups => $IncludeSuperuserGroups ); my %dashboard_map; for my $object (@objs) { - my $new_dashboards = $m->comp("/Dashboards/Elements/DashboardsForObject", Object => $object); + my $new_dashboards = $m->comp("/Dashboards/Elements/DashboardsForObject", + Object => $object, User => $User ); push @{ $dashboard_map{$_} }, @{ $new_dashboards->{$_} || [] } for qw/personal system/; @@ -78,5 +78,6 @@ $m->callback(%ARGS, dashboards => \@dashboards, CallbackName => 'ModifyDashboard return @dashboards; <%args> +$User => $session{CurrentUser} $IncludeSuperuserGroups => 1