From dd0d21b690081ed36c043a9c4e408237c72756e0 Mon Sep 17 00:00:00 2001 From: Angira Kekteeva Date: Fri, 10 Jun 2022 00:05:19 +0400 Subject: [PATCH] [#523] Fix typo Signed-off-by: Angira Kekteeva --- api/handler/acl.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 } }