diff --git a/app/controllers/enterprises_controller.rb b/app/controllers/enterprises_controller.rb index 7488fa8c4d..3dfd5a2351 100644 --- a/app/controllers/enterprises_controller.rb +++ b/app/controllers/enterprises_controller.rb @@ -6,6 +6,8 @@ class EnterprisesController < BaseController include OrderCyclesHelper include SerializerHelper + protect_from_forgery except: :check_permalink + # These prepended filters are in the reverse order of execution prepend_before_action :set_order_cycles, :require_distributor_chosen, :reset_order, only: :shop