ACL driver/storage layer support

This commit is contained in:
Harshavardhana committed 2015-04-22 19:31:45 -07:00
1 parent c8713fd650
commit 1c0ff2c758
13 files changed
+134 -51

No files matched your search

+4
View File
@@ -79,6 +79,10 @@ func (h vHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
writeErrorResponse(w, r, AccessDenied, acceptsContentType, r.URL.Path)
return
}
if r.Method == "PUT" && bucketMetadata.ACL.IsPublicRead() {
writeErrorResponse(w, r, AccessDenied, acceptsContentType, r.URL.Path)
return
}
}
switch true {