mirror of
https://github.com/versity/versitygw.git
synced 2026-07-29 03:22:57 +00:00
S3 Proxy PutBucketAcl reference bug (#341)
* feat: implemented the logic to run integration tests separately * fix: Fixes #336, fixed s3 proxy PutBucketAcl action's referance bug
This commit is contained in:
@@ -472,10 +472,11 @@ func (s S3be) PutBucketAcl(ctx context.Context, bucket string, data []byte) erro
|
||||
}
|
||||
|
||||
for _, el := range acl.Grantees {
|
||||
acc := el.Access
|
||||
input.AccessControlPolicy.Grants = append(input.AccessControlPolicy.Grants, types.Grant{
|
||||
Permission: el.Permission,
|
||||
Grantee: &types.Grantee{
|
||||
ID: &el.Access,
|
||||
ID: &acc,
|
||||
Type: types.TypeCanonicalUser,
|
||||
},
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user