Only update session activity on specific endpoints (#7549)

This commit is contained in:
Joram Wilander
2017-10-03 14:16:33 -04:00
committed by Chris
parent 5e69ce099f
commit 3e144f82e2
4 changed files with 5 additions and 1 deletions

View File

@@ -157,7 +157,6 @@ func (h handler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
c.Err = model.NewAppError("ServeHTTP", "api.context.token_provided.app_error", nil, "token="+token, http.StatusUnauthorized)
} else {
c.Session = *session
c.App.UpdateLastActivityAtIfNeeded(*session)
}
}