aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/line_footnotes_controller.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/line_footnotes_controller.rb')
-rw-r--r--app/controllers/line_footnotes_controller.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/controllers/line_footnotes_controller.rb b/app/controllers/line_footnotes_controller.rb
index 3b44d087c..192f902c8 100644
--- a/app/controllers/line_footnotes_controller.rb
+++ b/app/controllers/line_footnotes_controller.rb
@@ -1,6 +1,6 @@
class LineFootnotesController < ChouetteController
defaults :resource_class => Chouette::Line, :instance_name => 'line'
- before_action :check_policy, only: [:edit, :update, :destroy]
+ include PolicyChecker
belongs_to :referential
def show
@@ -24,6 +24,8 @@ class LineFootnotesController < ChouetteController
end
protected
+
+ # overrides default
def check_policy
authorize resource, "#{action_name}_footnote?".to_sym
end