mirror of
https://github.com/minio/minio.git
synced 2025-02-04 10:26:01 -05:00
Merge pull request #476 from harshavardhana/pr_out_disable_verifying_acl_until_we_get_webcli_up_and_running
This commit is contained in:
commit
d447ca9af1
@ -42,13 +42,18 @@ func (server *minioAPI) isValidOp(w http.ResponseWriter, req *http.Request, acce
|
||||
return false
|
||||
}
|
||||
case nil:
|
||||
|
||||
if stripAccessKey(req) == "" && bucketMetadata.ACL.IsPrivate() {
|
||||
writeErrorResponse(w, req, AccessDenied, acceptsContentType, req.URL.Path)
|
||||
return false
|
||||
return true
|
||||
// Uncomment this when we have webCli
|
||||
// writeErrorResponse(w, req, AccessDenied, acceptsContentType, req.URL.Path)
|
||||
// return false
|
||||
}
|
||||
if bucketMetadata.ACL.IsPublicRead() && req.Method == "PUT" {
|
||||
writeErrorResponse(w, req, AccessDenied, acceptsContentType, req.URL.Path)
|
||||
return false
|
||||
return true
|
||||
// Uncomment this when we have webCli
|
||||
// writeErrorResponse(w, req, AccessDenied, acceptsContentType, req.URL.Path)
|
||||
// return false
|
||||
}
|
||||
}
|
||||
return true
|
||||
|
Loading…
x
Reference in New Issue
Block a user