Commit 30acff8d514bed1ab31e93515524b78833224fd0
1 parent
a600bfbe
Exists in
master
and in
29 other branches
Fixing access to actions
Showing
1 changed file
with
2 additions
and
0 deletions
Show diff stats
plugins/shopping_cart/controllers/shopping_cart_plugin_profile_controller.rb
@@ -3,6 +3,8 @@ include ActionView::Helpers::NumberHelper | @@ -3,6 +3,8 @@ include ActionView::Helpers::NumberHelper | ||
3 | class ShoppingCartPluginProfileController < ProfileController | 3 | class ShoppingCartPluginProfileController < ProfileController |
4 | append_view_path File.join(File.dirname(__FILE__) + '/../views') | 4 | append_view_path File.join(File.dirname(__FILE__) + '/../views') |
5 | 5 | ||
6 | + before_filter :login_required, :only => [] | ||
7 | + | ||
6 | def add | 8 | def add |
7 | session[:cart] = { :enterprise_id => profile.id, :items => {} } if session[:cart].nil? | 9 | session[:cart] = { :enterprise_id => profile.id, :items => {} } if session[:cart].nil? |
8 | if validate_same_enterprise && product = validate_enterprise_has_product(params[:id]) | 10 | if validate_same_enterprise && product = validate_enterprise_has_product(params[:id]) |