Signed-off-by: Angira Kekteeva <kira@nspcc.ru>
This commit is contained in:
Angira Kekteeva 2022-06-10 00:05:19 +04:00 committed by Kira
parent bd5fd041b7
commit dd0d21b690

View file

@ -1151,7 +1151,7 @@ func (h *handler) encodeObjectACL(bucketACL *layer.BucketACL, objectName string)
var found bool var found bool
for _, filter := range record.Filters() { for _, filter := range record.Filters() {
if filter.Matcher() == eacl.MatchStringEqual && if filter.Matcher() == eacl.MatchStringEqual &&
filter.Key() == object.AttributeFileName && filter.Key() == objectName { filter.Key() == object.AttributeFileName && filter.Value() == objectName {
found = true found = true
} }
} }