aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/line_footnotes_controller.rb
diff options
context:
space:
mode:
authorXinhui2017-04-19 15:36:36 +0200
committerXinhui2017-04-19 15:36:46 +0200
commitfae235f1c8edcd0c03af4da877615799222b509e (patch)
tree72bfe91e78d7ef7b7f5077cc1baf7ee8cad15cc6 /app/controllers/line_footnotes_controller.rb
parentfd9cd712f8e32378bdee5f049db2a0fe034a9b2a (diff)
downloadchouette-core-fae235f1c8edcd0c03af4da877615799222b509e.tar.bz2
Refactoring vehicle_journeys#index permissions check using policy
Refs #3139
Diffstat (limited to 'app/controllers/line_footnotes_controller.rb')
-rw-r--r--app/controllers/line_footnotes_controller.rb2
1 files changed, 0 insertions, 2 deletions
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