From df6a622c20e8c51f13acc505da308d56a81425b1 Mon Sep 17 00:00:00 2001 From: Leonard Lyubich Date: Mon, 15 Nov 2021 08:52:29 +0300 Subject: [PATCH] [#77] client: Do not change eACL version in `SetEACL` Client must not change version of the eACL table to be saved. Signed-off-by: Leonard Lyubich --- client/container.go | 1 - 1 file changed, 1 deletion(-) diff --git a/client/container.go b/client/container.go index 73e5fb2..50ea04d 100644 --- a/client/container.go +++ b/client/container.go @@ -370,7 +370,6 @@ func (c *clientImpl) SetEACL(ctx context.Context, eacl *eacl.Table, opts ...Call reqBody := new(v2container.SetExtendedACLRequestBody) reqBody.SetEACL(eacl.ToV2()) - reqBody.GetEACL().SetVersion(version.Current().ToV2()) signWrapper := v2signature.StableMarshalerWrapper{SM: reqBody.GetEACL()}