diff --git a/internal/api/authentication.go b/internal/api/authentication.go index 94b5328f5..00ef58e5e 100644 --- a/internal/api/authentication.go +++ b/internal/api/authentication.go @@ -42,7 +42,7 @@ func authenticateHandler() func(http.Handler) http.Handler { userID, err := manager.GetInstance().SessionStore.Authenticate(w, r) if err != nil { - if errors.Is(err, session.ErrUnauthorized) { + if !errors.Is(err, session.ErrUnauthorized) { http.Error(w, err.Error(), http.StatusInternalServerError) return }