From fae235f1c8edcd0c03af4da877615799222b509e Mon Sep 17 00:00:00 2001 From: Xinhui Date: Wed, 19 Apr 2017 15:36:36 +0200 Subject: Refactoring vehicle_journeys#index permissions check using policy Refs #3139 --- app/controllers/line_footnotes_controller.rb | 2 -- 1 file changed, 2 deletions(-) (limited to 'app/controllers/line_footnotes_controller.rb') diff --git a/app/controllers/line_footnotes_controller.rb b/app/controllers/line_footnotes_controller.rb index 7bc048731..c42aa785b 100644 --- a/app/controllers/line_footnotes_controller.rb +++ b/app/controllers/line_footnotes_controller.rb @@ -1,7 +1,6 @@ class LineFootnotesController < BreadcrumbController defaults :resource_class => Chouette::Line include PolicyChecker - before_action :check_policy, only: [:edit, :update, :destroy] respond_to :json, :only => :show belongs_to :referential @@ -27,7 +26,6 @@ class LineFootnotesController < BreadcrumbController end protected - # overrides default def check_policy authorize resource, "#{action_name}_footnote?".to_sym -- cgit v1.2.3