Now donut supports bucket ACL's, bringing in this support for dl.minio.io

This commit is contained in:
Harshavardhana
2015-04-27 02:04:05 -07:00
parent f5a51ae1bb
commit c99d96dbc2
8 changed files with 165 additions and 22 deletions

View File

@@ -45,13 +45,13 @@ func (server *minioAPI) isValidOp(w http.ResponseWriter, req *http.Request, acce
if stripAccessKey(req) == "" && bucketMetadata.ACL.IsPrivate() {
return true
// Uncomment this when we have webCli
// Uncomment this before release
// writeErrorResponse(w, req, AccessDenied, acceptsContentType, req.URL.Path)
// return false
}
if bucketMetadata.ACL.IsPublicRead() && req.Method == "PUT" {
return true
// Uncomment this when we have webCli
// Uncomment this before release
// writeErrorResponse(w, req, AccessDenied, acceptsContentType, req.URL.Path)
// return false
}