Skip to content

Commit

Permalink
Only set the cart user if the user is logged in.
Browse files Browse the repository at this point in the history
  • Loading branch information
schof committed Jul 18, 2008
1 parent 0394e9c commit 2ed8489
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pp_website_standard_extension.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ def create_reference_hash
CartController.class_eval do
before_filter :set_cart_user

def set_cart_user
@cart.user = current_user
def set_cart_user
@cart.user = current_user if logged_in?
end
end

Expand Down

0 comments on commit 2ed8489

Please sign in to comment.