fix: weekbased calculation pdf report
with this change the time calculations for pdf reports should be better line with the reports send as "week_report"
This commit is contained in:
@@ -24,7 +24,7 @@ func SetCors(w http.ResponseWriter) {
|
||||
|
||||
func RequiresLogin(session *scs.SessionManager, w http.ResponseWriter, r *http.Request) {
|
||||
r = r.WithContext(context.WithValue(r.Context(), "session", session))
|
||||
if GetEnv("GO_ENV", "production") == "debug" {
|
||||
if IsDebug() {
|
||||
return
|
||||
}
|
||||
if session.Exists(r.Context(), "user") {
|
||||
|
||||
Reference in New Issue
Block a user