diff options
author | Louise Crow <louise.crow@gmail.com> | 2013-09-19 12:33:55 +0100 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2013-09-19 12:33:55 +0100 |
commit | 57839951c8c0ffd6074d0c54be0c9dda874b2cbe (patch) | |
tree | 1a1e9a0866e4c1fbc3e85964f69df86dd9164ba2 | |
parent | 681cb1866dacfb82c1b4e6102c76b91a5587ca75 (diff) |
Revert "No need to set permissions on file now."
In fact, we do still need to set permissions.
This reverts commit 56ce526acdcb1b5493bc11f14b751b5c3f02f686.
-rw-r--r-- | app/controllers/request_controller.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/controllers/request_controller.rb b/app/controllers/request_controller.rb index b2d228494..388473b51 100644 --- a/app/controllers/request_controller.rb +++ b/app/controllers/request_controller.rb @@ -883,6 +883,7 @@ class RequestController < ApplicationController if !File.exists?(cache_file_path) FileUtils.mkdir_p(File.dirname(cache_file_path)) make_request_zip(@info_request, cache_file_path) + File.chmod(0644, cache_file_path) end send_file(cache_file_path, :filename => "#{@info_request.url_title}.zip") end |