forked from TrueCloudLab/frostfs-node
[#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:
parent
fddc50fd85
commit
706bdf736e
1 changed files with 4 additions and 0 deletions
|
@ -65,6 +65,10 @@ func headersFromObject(obj *object.Object) []eacl.Header {
|
||||||
k: acl.FilterObjectPayloadLength,
|
k: acl.FilterObjectPayloadLength,
|
||||||
v: u64Value(obj.PayloadSize()),
|
v: u64Value(obj.PayloadSize()),
|
||||||
},
|
},
|
||||||
|
&sysObjHdr{
|
||||||
|
k: acl.FilterObjectID,
|
||||||
|
v: idValue(obj.ID()),
|
||||||
|
},
|
||||||
// TODO: add others fields after neofs-api#84
|
// TODO: add others fields after neofs-api#84
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue