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

master
poornas 7 years ago committed by Harshavardhana
parent b4dc6df35c
commit 748b1d6495
  1. 2
      cmd/gateway-azure.go

@ -738,7 +738,7 @@ func (a *azureObjects) GetBucketPolicies(bucket string) (policy.BucketAccessPoli
}
switch perm.AccessType {
case storage.ContainerAccessTypePrivate:
// Do nothing
return policy.BucketAccessPolicy{}, traceError(PolicyNotFound{Bucket: bucket})
case storage.ContainerAccessTypeContainer:
policyInfo.Statements = policy.SetPolicy(policyInfo.Statements, policy.BucketPolicyReadOnly, bucket, "")
default:

Loading…
Cancel
Save