1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

Update S3 ACL whitelist

This commit is contained in:
Keith Barrette 2013-12-16 17:16:23 -05:00
parent 4c9bcab433
commit 1e0f67a85c

View file

@ -33,13 +33,13 @@ module Fog
# Set file's access control list (ACL).
#
# valid acls: private, public-read, public-read-write, authenticated-read
# valid acls: private, public-read, public-read-write, authenticated-read, bucket-owner-read, bucket-owner-full-control
#
# @param [String] new_acl one of valid options
# @return [String] @acl
#
def acl=(new_acl)
valid_acls = ['private', 'public-read', 'public-read-write', 'authenticated-read']
valid_acls = ['private', 'public-read', 'public-read-write', 'authenticated-read', 'bucket-owner-read', 'bucket-owner-full-control']
unless valid_acls.include?(new_acl)
raise ArgumentError.new("acl must be one of [#{valid_acls.join(', ')}]")
end