Skip to content
This repository has been archived by the owner on May 3, 2020. It is now read-only.

Commit

Permalink
Updated route
Browse files Browse the repository at this point in the history
Big thanks to Antonious Papdopoulos (https://github.com/uyatashi) for pointing out this issue.
  • Loading branch information
BuffaloWill authored Apr 22, 2020
1 parent 0f486e4 commit 0b86004
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions routes/admin.rb
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@

# create backup of all attachments
get '/admin/attacments_backup' do
redirect to('/no_access') unless is_administrator?
bdate = Time.now
zip_file = './tmp/Attachments' + '-' + (bdate.strftime('%Y%m%d%H%M%S') + '.zip')
Zip::File.open(zip_file, Zip::File::CREATE) do |zipfile|
Expand Down

0 comments on commit 0b86004

Please sign in to comment.