diff --git a/neofs/api/user-auth.go b/neofs/api/user-auth.go index 99dd0fb9..17d6eaea 100644 --- a/neofs/api/user-auth.go +++ b/neofs/api/user-auth.go @@ -14,7 +14,7 @@ func AttachUserAuth(router *mux.Router, center *auth.Center, log *zap.Logger) { bearerToken, err := center.AuthenticationPassed(r) if err != nil { log.Error("failed to pass authentication", zap.Error(err)) - WriteErrorResponse(r.Context(), w, getAPIError(ErrAccessDenied), r.URL) + WriteErrorResponse(r.Context(), w, GetAPIError(ErrAccessDenied), r.URL) return } h.ServeHTTP(w, r.WithContext(auth.SetBearerToken(r.Context(), bearerToken)))