From c8b5307c613c68feb59aee864c10b86aa5497ea9 Mon Sep 17 00:00:00 2001 From: Emil Tullstedt Date: Thu, 14 Jul 2022 14:20:11 +0200 Subject: [PATCH] Preferences: Get home dashboard from teams (#52225) --- pkg/api/dashboard.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/api/dashboard.go b/pkg/api/dashboard.go index 95b88909641..2fc04caa488 100644 --- a/pkg/api/dashboard.go +++ b/pkg/api/dashboard.go @@ -445,7 +445,7 @@ func (hs *HTTPServer) postDashboard(c *models.ReqContext, cmd models.SaveDashboa // GetHomeDashboard returns the home dashboard. func (hs *HTTPServer) GetHomeDashboard(c *models.ReqContext) response.Response { - prefsQuery := pref.GetPreferenceWithDefaultsQuery{OrgID: c.OrgId, UserID: c.SignedInUser.UserId} + prefsQuery := pref.GetPreferenceWithDefaultsQuery{OrgID: c.OrgId, UserID: c.SignedInUser.UserId, Teams: c.Teams} homePage := hs.Cfg.HomePage preference, err := hs.preferenceService.GetWithDefaults(c.Req.Context(), &prefsQuery)