about summary refs log tree commit diff
path: root/app/models
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2023-03-16 22:46:52 +0100
committerGitHub <noreply@github.com>2023-03-16 22:46:52 +0100
commit75e5a6e43738c278390c03c96d5d3e8575a2783c (patch)
treeefe4516b3260387ea192c851d1665d89d27dad77 /app/models
parentedc7ca5920641e938cb50c0bf49ff6b0c77a80b4 (diff)
Change user backups to use expiring URLs for download when possible (#24136)
Diffstat (limited to 'app/models')
-rw-r--r--app/models/backup.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/backup.rb b/app/models/backup.rb
index bec3cbfe5..dca06eb58 100644
--- a/app/models/backup.rb
+++ b/app/models/backup.rb
@@ -18,6 +18,6 @@
 class Backup < ApplicationRecord
   belongs_to :user, inverse_of: :backups
 
-  has_attached_file :dump
+  has_attached_file :dump, s3_permissions: 'private'
   validates_attachment_content_type :dump, content_type: /\Aapplication/
 end