mirror of
https://github.com/minio/minio.git
synced 2025-02-28 05:49:16 -05:00
azure: For container access type private treat as no policy set. (#4729)
This commit is contained in:
parent
b4dc6df35c
commit
748b1d6495
@ -738,7 +738,7 @@ func (a *azureObjects) GetBucketPolicies(bucket string) (policy.BucketAccessPoli
|
|||||||
}
|
}
|
||||||
switch perm.AccessType {
|
switch perm.AccessType {
|
||||||
case storage.ContainerAccessTypePrivate:
|
case storage.ContainerAccessTypePrivate:
|
||||||
// Do nothing
|
return policy.BucketAccessPolicy{}, traceError(PolicyNotFound{Bucket: bucket})
|
||||||
case storage.ContainerAccessTypeContainer:
|
case storage.ContainerAccessTypeContainer:
|
||||||
policyInfo.Statements = policy.SetPolicy(policyInfo.Statements, policy.BucketPolicyReadOnly, bucket, "")
|
policyInfo.Statements = policy.SetPolicy(policyInfo.Statements, policy.BucketPolicyReadOnly, bucket, "")
|
||||||
default:
|
default:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user