From a9e414302e19be33d24835394a6e077002b98870 Mon Sep 17 00:00:00 2001 From: akuma06 Date: Mon, 8 May 2017 15:08:36 +0200 Subject: [PATCH] Fixed typo --- service/user/cookieHelper.go | 1 - 1 file changed, 1 deletion(-) diff --git a/service/user/cookieHelper.go b/service/user/cookieHelper.go index 0974fc83..80ef3f71 100644 --- a/service/user/cookieHelper.go +++ b/service/user/cookieHelper.go @@ -150,7 +150,6 @@ func CurrentUser(r *http.Request) (model.User, error) { if db.ORM.Select(config.UserPublicFields+", email").Where("token = ?", token).First(&user).RecordNotFound() { return user, errors.New("User is not found.") } - db.ORM.Model(&user).Association("Languages").Find(&user.Languages) db.ORM.Model(&user).Association("Roles").Find(&user.Roles) return user, nil }