feat: team preferences

This commit is contained in:
Marcus Efraimsson
2018-11-12 20:01:53 +01:00
parent a2a4458923
commit 5f9fecd254
9 changed files with 145 additions and 19 deletions
+1 -1
View File
@@ -293,7 +293,7 @@ func PostDashboard(c *m.ReqContext, cmd m.SaveDashboardCommand) Response {
}
func GetHomeDashboard(c *m.ReqContext) Response {
prefsQuery := m.GetPreferencesWithDefaultsQuery{OrgId: c.OrgId, UserId: c.UserId}
prefsQuery := m.GetPreferencesWithDefaultsQuery{User: c.SignedInUser}
if err := bus.Dispatch(&prefsQuery); err != nil {
return Error(500, "Failed to get preferences", err)
}