Skip to content

Commit

Permalink
*: Check canned acl BucketOwnerFullControl
Browse files Browse the repository at this point in the history
Bucket owner already has full access to the object. We just add the support of the ACL.

Signed-off-by: Evgenii Baidakov <[email protected]>
  • Loading branch information
smallhive committed Nov 2, 2024
1 parent a792f48 commit b755aa9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions api/handler/acl.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down

0 comments on commit b755aa9

Please sign in to comment.