diff options
Diffstat (limited to 'api')
-rw-r--r-- | api/user.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/api/user.go b/api/user.go index 701badfc9..7587b83ad 100644 --- a/api/user.go +++ b/api/user.go @@ -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 { |