Fix uploaded file permissions

This commit is contained in:
Guillaume Lazzara 2016-05-24 14:25:40 +02:00
parent f95815d952
commit 9aca554eb2

View file

@ -9,8 +9,8 @@ end
CarrierWave.configure do |config|
# These permissions will make dir and files available only to the user running
# the servers
config.permissions = 0600
config.directory_permissions = 0700
config.permissions = 0664
config.directory_permissions = 0775
if Features.remote_storage and not Rails.env.test?
config.fog_credentials = { provider: 'OpenStack' }