Skip to content

Commit

Permalink
Auth before for export
Browse files Browse the repository at this point in the history
  • Loading branch information
richardhallett committed Oct 1, 2019
1 parent 2751e1d commit 74b36d7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/controllers/export_controller.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
class ExportController < ApplicationController
include ActionController::MimeResponds

before_action :authenticate_user!

def contacts
authorize! :export, :contacts

Expand Down

0 comments on commit 74b36d7

Please sign in to comment.