X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;ds=sidebyside;f=rt%2Fshare%2Fhtml%2FDashboards%2FElements%2FListOfDashboards;h=e7f90cf1e143182dca11e082252132460f9b7122;hb=44dd00a3ff974a17999e86e64488e996edc71e3c;hp=ac222842dc82a17b8e6331b2b3a77ff5c2b0824f;hpb=45d35d5739d05e602bc317739485693e0e9ff0b5;p=freeside.git diff --git a/rt/share/html/Dashboards/Elements/ListOfDashboards b/rt/share/html/Dashboards/Elements/ListOfDashboards index ac222842d..e7f90cf1e 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-2014 Best Practical Solutions, LLC +%# This software is Copyright (c) 1996-2019 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