diff --git a/api/handler/acl.go b/api/handler/acl.go index 3cd034dfa..47f8268fa 100644 --- a/api/handler/acl.go +++ b/api/handler/acl.go @@ -1151,7 +1151,7 @@ func (h *handler) encodeObjectACL(bucketACL *layer.BucketACL, objectName string) var found bool for _, filter := range record.Filters() { if filter.Matcher() == eacl.MatchStringEqual && - filter.Key() == object.AttributeFileName && filter.Key() == objectName { + filter.Key() == object.AttributeFileName && filter.Value() == objectName { found = true } }