diff options
-rw-r--r-- | app/services/suspend_account_service.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/services/suspend_account_service.rb b/app/services/suspend_account_service.rb index 32b46f0e1..7ad4777ee 100644 --- a/app/services/suspend_account_service.rb +++ b/app/services/suspend_account_service.rb @@ -37,6 +37,8 @@ class SuspendAccountService < BaseService styles = [:original] | attachment.styles.keys styles.each do |style| + next if attachment.path(style).blank? + case Paperclip::Attachment.default_options[:storage] when :s3 attachment.s3_object(style).acl.put({ acl: 'private' }) |