lib/heirloom/acl/s3.rb in heirloom-0.1.2 vs lib/heirloom/acl/s3.rb in heirloom-0.1.3

- old
+ new

@@ -37,15 +37,21 @@ id = args[:id] name = args[:name] a = Array.new + # Add each account email as read access @accounts.each do |g| a << { 'Grantee' => { 'EmailAddress' => g } , 'Permission' => 'READ' } end + + # Grand owner full access + a << { 'Grantee' => { 'DisplayName' => name, 'ID' => id }, + 'Permission' => 'FULL_CONTROL' + } { 'Owner' => { 'DisplayName' => name, 'ID' => id