From 74b36d70505e0ebf132d75bd9f1b254ec60b4590 Mon Sep 17 00:00:00 2001 From: Richard Hallett Date: Tue, 1 Oct 2019 14:09:22 +0200 Subject: [PATCH] Auth before for export --- app/controllers/export_controller.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/controllers/export_controller.rb b/app/controllers/export_controller.rb index c1ecdfb27..8552703b9 100644 --- a/app/controllers/export_controller.rb +++ b/app/controllers/export_controller.rb @@ -1,6 +1,8 @@ class ExportController < ApplicationController include ActionController::MimeResponds + before_action :authenticate_user! + def contacts authorize! :export, :contacts