From a5729e8c02c8675d1908e60ed32fbf11a7a8c302 Mon Sep 17 00:00:00 2001 From: Harshavardhana Date: Thu, 23 Apr 2015 03:21:08 -0700 Subject: [PATCH] Disable verifying ACL until we get webcli up and running --- pkg/api/api_bucket_handlers.go | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/pkg/api/api_bucket_handlers.go b/pkg/api/api_bucket_handlers.go index 0daf1b1f3..3fbba0303 100644 --- a/pkg/api/api_bucket_handlers.go +++ b/pkg/api/api_bucket_handlers.go @@ -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