From d8eada0132a7db409da57e231b676852dd25dc25 Mon Sep 17 00:00:00 2001 From: "Grot (@grafanabot)" <43478413+grafanabot@users.noreply.github.com> Date: Thu, 14 Jul 2022 17:09:36 +0200 Subject: [PATCH] Preferences: Get home dashboard from teams (#52225) (#52229) (cherry picked from commit c8b5307c613c68feb59aee864c10b86aa5497ea9) Co-authored-by: Emil Tullstedt --- 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 4fb8202bb71..be562a2006d 100644 --- a/pkg/api/dashboard.go +++ b/pkg/api/dashboard.go @@ -453,7 +453,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)