From b755aa997b02aee95a5417652467caff3806b508 Mon Sep 17 00:00:00 2001 From: Evgenii Baidakov Date: Sat, 2 Nov 2024 14:07:04 +0400 Subject: [PATCH] *: Check canned acl BucketOwnerFullControl Bucket owner already has full access to the object. We just add the support of the ACL. Signed-off-by: Evgenii Baidakov --- api/handler/acl.go | 1 + 1 file changed, 1 insertion(+) diff --git a/api/handler/acl.go b/api/handler/acl.go index 42be512b..3930601f 100644 --- a/api/handler/acl.go +++ b/api/handler/acl.go @@ -649,6 +649,7 @@ func formGrantee(granteeType, value string) (*Grantee, error) { func addPredefinedACP(acp *AccessControlPolicy, cannedACL string) (*AccessControlPolicy, error) { switch cannedACL { case basicACLPrivate: + case cannedACLBucketOwnerFullControl: case basicACLPublic: acp.AccessControlList = append(acp.AccessControlList, &Grant{ Grantee: &Grantee{