From 3286b3b7dbaa3303724a8506a6a6c3e5992d1e20 Mon Sep 17 00:00:00 2001 From: Eduard Urbach Date: Fri, 23 Jun 2017 19:26:54 +0200 Subject: [PATCH] Removed incorrect comments --- middleware/UserInfo.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/middleware/UserInfo.go b/middleware/UserInfo.go index 9f1a8429..96aecab1 100644 --- a/middleware/UserInfo.go +++ b/middleware/UserInfo.go @@ -37,8 +37,6 @@ func UserInfo() aero.Middleware { } // Ignore API requests - // Note that API requests can filter data (privacy) and we might accidentally save the filtered data. - // That's why it's very important to ignore all API requests and not call user.Save() in this context. if strings.HasPrefix(ctx.URI(), "/api/") { return } @@ -50,11 +48,6 @@ func UserInfo() aero.Middleware { return } - // Let's be 100% sure we really do not accidentally save filtered data. - if user.Email == "" && user.IP == "" && user.FirstName == "" { - return - } - // This works asynchronously so it doesn't block the response go updateUserInfo(ctx, user) }