X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;ds=sidebyside;f=rt%2Fshare%2Fhtml%2FDashboards%2FElements%2FListOfDashboards;h=cc47c48eb32d97b84c55c485858d7a493a0f6a34;hb=9aee669886202be7035e6c6049fc71bc99dd3013;hp=eba8d502af9ebb0cdd6d5b53f0c77a8824761e00;hpb=3d0a1bb06b895c5be6e3f0517d355442a6b1e125;p=freeside.git diff --git a/rt/share/html/Dashboards/Elements/ListOfDashboards b/rt/share/html/Dashboards/Elements/ListOfDashboards index eba8d502a..cc47c48eb 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-2013 Best Practical Solutions, LLC +%# This software is Copyright (c) 1996-2015 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