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

Signed-off-by: Airat Arifullin <a.arifullin@yadro.com>
fix/object_head_eacl
Airat Arifullin 2023-11-08 17:12:45 +03:00
parent 3ed3e2715b
commit 3534d6d05b
1 changed files with 6 additions and 0 deletions

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 {