[#794] objectsvc: Return accidentally removed acl checks for Head #794

Merged
dstepanov-yadro merged 1 commit from aarifullin/frostfs-node:fix/object_head_eacl into master 2023-11-08 14:45:35 +00:00
Showing only changes of commit 3534d6d05b - Show all commits

View file

@ -218,6 +218,12 @@ func (b Service) Head(
reqInfo.obj = obj
if !b.checker.CheckBasicACL(reqInfo) {
return nil, basicACLErr(reqInfo)
} else if err := b.checker.CheckEACL(request, reqInfo); err != nil {
return nil, eACLErr(reqInfo, err)
}
resp, err := b.next.Head(ctx, request)
if err == nil {
if err = b.checker.CheckEACL(resp, reqInfo); err != nil {