diff options
| author | Zog | 2018-03-07 16:15:36 +0100 |
|---|---|---|
| committer | Zog | 2018-03-12 12:00:14 +0100 |
| commit | db15dc6158939d2577ccd53aac66a283ce4f3338 (patch) | |
| tree | 797fe3dab0e2749aed38f250550f4e2e6a514a75 /app/controllers | |
| parent | 1245099459bd3d7dce71fdf0d7c95b2377a0034e (diff) | |
| download | chouette-core-db15dc6158939d2577ccd53aac66a283ce4f3338.tar.bz2 | |
refs #6133; Add some basic specs
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 |
