restrict access to proper methods

pull/6827/head
Gregor Schmidt 13 years ago
parent 860b6023c1
commit f7af53d991
  1. 3
      app/controllers/cost_reports_controller.rb

@ -30,6 +30,9 @@ class CostReportsController < ApplicationController
include Report::Controller
before_filter :set_cost_types # has to be set AFTER the Report::Controller filters run
verify :method => :delete, :only => %w[delete]
verify :method => :post, :only => %w[create update rename]
helper_method :cost_types
helper_method :cost_type
helper_method :unit_id

Loading…
Cancel
Save