fix: set s3_acl_enabled to false when s3_permission empty

This commit is contained in:
everpcpc 2023-12-05 10:23:20 +08:00
parent 89a8e6e622
commit 1dfd82fd08
No known key found for this signature in database
GPG Key ID: B068E3C65BC46F6B

View File

@ -69,6 +69,7 @@ if ENV['S3_ENABLED'] == 'true'
)
Paperclip::Attachment.default_options[:s3_permissions] = ->(*) { nil } if ENV['S3_PERMISSION'] == ''
Paperclip::Attachment.default_options[:s3_acl_enabled] = ->(*) { false } if ENV['S3_PERMISSION'] == ''
if ENV.has_key?('S3_ENDPOINT')
Paperclip::Attachment.default_options[:s3_options].merge!(