Commit a7aa451566885453c67b3ab3e5fb14b54224df30
1 parent
921c10e3
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
... | ... | @@ -4,6 +4,8 @@ class ShoppingCartPluginProfileController < ProfileController |
4 | 4 | append_view_path File.join(File.dirname(__FILE__) + '/../views') |
5 | 5 | before_filter :login_required, :only => [] |
6 | 6 | |
7 | + before_filter :login_required, :only => [] | |
8 | + | |
7 | 9 | def add |
8 | 10 | session[:cart] = { :enterprise_id => profile.id, :items => {} } if session[:cart].nil? |
9 | 11 | if validate_same_enterprise && product = validate_enterprise_has_product(params[:id]) | ... | ... |