app/models/spud_media.rb in spud_media-0.9.1 vs app/models/spud_media.rb in spud_media-0.9.2

- old
+ new

@@ -124,13 +124,17 @@ end def validate_permissions_s3 if is_protected attachment.s3_object(:original).acl = :private - attachment.s3_object(:cropped).acl = :private unless !has_custom_crop? + if attachment.s3_object(:cropped).exists? + attachment.s3_object(:cropped).acl = :private + end else attachment.s3_object(:original).acl = :public_read - attachment.s3_object(:cropped).acl = :public_read unless !has_custom_crop? + if attachment.s3_object(:cropped).exists? + attachment.s3_object(:cropped).acl = :public_read + end end end end