Only update session activity on specific endpoints (#7549)

Этот коммит содержится в:
Joram Wilander
2017-10-03 14:16:33 -04:00
коммит произвёл Chris
родитель 5e69ce099f
Коммит 3e144f82e2
4 изменённых файлов: 5 добавлений и 1 удалений

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

@@ -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)
}
}