Commit 30acff8d514bed1ab31e93515524b78833224fd0

Authored by Rodrigo Souto
1 parent a600bfbe

Fixing access to actions

plugins/shopping_cart/controllers/shopping_cart_plugin_profile_controller.rb
... ... @@ -3,6 +3,8 @@ include ActionView::Helpers::NumberHelper
3 3 class ShoppingCartPluginProfileController < ProfileController
4 4 append_view_path File.join(File.dirname(__FILE__) + '/../views')
5 5  
  6 + before_filter :login_required, :only => []
  7 +
6 8 def add
7 9 session[:cart] = { :enterprise_id => profile.id, :items => {} } if session[:cart].nil?
8 10 if validate_same_enterprise && product = validate_enterprise_has_product(params[:id])
... ...