Require distributor in enterprise controller, so that everything actually works

This commit is contained in:
Rob Harrington
2015-01-20 09:22:28 +11:00
parent 48dc85cfc2
commit ff624e83eb

View File

@@ -2,6 +2,7 @@ class EnterprisesController < BaseController
layout "darkswarm"
helper Spree::ProductsHelper
include OrderCyclesHelper
before_filter :require_distributor_chosen
before_filter :set_order_cycles, only: :shop
before_filter :load_active_distributors, only: :shop
before_filter :clean_permalink, only: :check_permalink