diff options
Diffstat (limited to 'app/controllers')
| -rw-r--r-- | app/controllers/exports_controller.rb | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/app/controllers/exports_controller.rb b/app/controllers/exports_controller.rb index 1b947299f..d56b14fb2 100644 --- a/app/controllers/exports_controller.rb +++ b/app/controllers/exports_controller.rb @@ -2,17 +2,9 @@ class ExportsController < ChouetteController include PolicyChecker include RansackDateFilter include IevInterfaces - skip_before_action :authenticate_user!, only: [:upload] + # skip_before_action :authenticate_user!, only: [:upload] defaults resource_class: Export::Base, collection_name: 'exports', instance_name: 'export' - def upload - if params[:token] == resource.token_download - send_file resource.file.path - else - user_not_authorized - end - end - private def build_resource |
