Fix preferences not loading correctly (#5084)

Этот коммит содержится в:
Joram Wilander
2017-01-16 18:33:25 -05:00
коммит произвёл Corey Hulen
родитель 6b2c4a346b
Коммит 4386432834

Просмотреть файл

@@ -633,7 +633,11 @@ func getInitialLoad(c *Context, w http.ResponseWriter, r *http.Request) {
}
il.User.Sanitize(map[string]bool{})
il.Preferences, err = app.GetPreferencesForUser(c.Session.Id)
il.Preferences, err = app.GetPreferencesForUser(c.Session.UserId)
if err != nil {
c.Err = err
return
}
il.Teams, err = app.GetTeamsForUser(c.Session.UserId)
if err != nil {