[#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 <leonard@nspcc.ru>
This commit is contained in:
Leonard Lyubich 2020-11-25 10:18:06 +03:00 committed by Leonard Lyubich
parent fddc50fd85
commit 706bdf736e

View file

@ -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
)