azure: For container access type private treat as no policy set. (#4729)

This commit is contained in:
poornas 2017-08-06 22:24:40 -07:00 committed by Harshavardhana
parent b4dc6df35c
commit 748b1d6495

View File

@ -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: