From 706bdf736e6c297942c37944397f130ed17da799 Mon Sep 17 00:00:00 2001 From: Leonard Lyubich Date: Wed, 25 Nov 2020 10:18:06 +0300 Subject: [PATCH] [#209] eacl: Support object ID filter in eACL mechanism Add object ID header to the list of processing object headers in eACL validation. Signed-off-by: Leonard Lyubich --- pkg/services/object/acl/eacl/v2/object.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkg/services/object/acl/eacl/v2/object.go b/pkg/services/object/acl/eacl/v2/object.go index c3e8481c..f48d8bf4 100644 --- a/pkg/services/object/acl/eacl/v2/object.go +++ b/pkg/services/object/acl/eacl/v2/object.go @@ -65,6 +65,10 @@ func headersFromObject(obj *object.Object) []eacl.Header { k: acl.FilterObjectPayloadLength, v: u64Value(obj.PayloadSize()), }, + &sysObjHdr{ + k: acl.FilterObjectID, + v: idValue(obj.ID()), + }, // TODO: add others fields after neofs-api#84 )