From aeeb8193d22e984a7959e25a572119893bd0ce1d Mon Sep 17 00:00:00 2001 From: Anton Nikiforov Date: Wed, 6 Sep 2023 17:06:54 +0300 Subject: [PATCH] [#676] node: Fix header source creation when checking eacl Signed-off-by: Anton Nikiforov --- pkg/services/object/acl/eacl/v2/headers.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/services/object/acl/eacl/v2/headers.go b/pkg/services/object/acl/eacl/v2/headers.go index 7408c96e9..34975e1e6 100644 --- a/pkg/services/object/acl/eacl/v2/headers.go +++ b/pkg/services/object/acl/eacl/v2/headers.go @@ -137,6 +137,8 @@ func (h *cfg) readObjectHeadersFromRequestXHeaderSource(m requestXHeaderSource, dst.objectHeaders = headersFromObject(objectSDK.NewFromV2(oV2), h.cnr, h.obj) } + case *objectV2.PutSingleRequest: + dst.objectHeaders = headersFromObject(objectSDK.NewFromV2(req.GetBody().GetObject()), h.cnr, h.obj) case *objectV2.SearchRequest: cnrV2 := req.GetBody().GetContainerID() var cnr cid.ID