mirror of
https://github.com/minio/minio.git
synced 2025-11-06 20:33:07 -05:00
Add NAS gateway support (#5516)
This commit is contained in:
@@ -291,7 +291,7 @@ func (xl xlObjects) GetBucketPolicy(bucket string) (policy.BucketAccessPolicy, e
|
||||
// fetch bucket policy from cache.
|
||||
bpolicy := xl.bucketPolicies.GetBucketPolicy(bucket)
|
||||
if reflect.DeepEqual(bpolicy, emptyBucketPolicy) {
|
||||
return readBucketPolicy(bucket, xl)
|
||||
return ReadBucketPolicy(bucket, xl)
|
||||
}
|
||||
return bpolicy, nil
|
||||
}
|
||||
@@ -303,7 +303,7 @@ func (xl xlObjects) DeleteBucketPolicy(bucket string) error {
|
||||
|
||||
// RefreshBucketPolicy refreshes policy cache from disk
|
||||
func (xl xlObjects) RefreshBucketPolicy(bucket string) error {
|
||||
policy, err := readBucketPolicy(bucket, xl)
|
||||
policy, err := ReadBucketPolicy(bucket, xl)
|
||||
|
||||
if err != nil {
|
||||
if reflect.DeepEqual(policy, emptyBucketPolicy) {
|
||||
|
||||
Reference in New Issue
Block a user