mirror of
https://github.com/internetee/registry.git
synced 2025-05-17 17:59:47 +02:00
Story#109065854 - LegalDocument folder permissions are 775 now
This commit is contained in:
parent
a74216c5e5
commit
1ac33f1df6
1 changed files with 1 additions and 1 deletions
|
@ -20,7 +20,7 @@ class LegalDocument < ActiveRecord::Base
|
|||
next if rand.to_i == 0 || rand.length < 4
|
||||
|
||||
dir = "#{ENV['legal_documents_dir']}/#{Time.zone.now.strftime('%Y/%m/%d')}"
|
||||
FileUtils.mkdir_p(dir)
|
||||
FileUtils.mkdir_p(dir, mode: 0775)
|
||||
self.path = "#{dir}/#{Time.zone.now.to_formatted_s(:number)}_#{rand}.#{document_type}"
|
||||
break unless File.file?(path)
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue