Permalink
Browse files

Fix one more occurrence of spree_current_user in products_controller

  • Loading branch information...
radar committed Jun 1, 2012
1 parent 514e267 commit 3d739e840aaa74fd1c53a12ef8caea25b7e510cc
Showing with 1 addition and 1 deletion.
  1. +1 −1 core/app/controllers/spree/products_controller.rb
@@ -34,7 +34,7 @@ def accurate_title
end
def load_product
- if spree_current_user.try(:has_spree_role?, "admin")
+ if current_user.try(:has_spree_role?, "admin")
@product = Product.find_by_permalink!(params[:id])
else
@product = Product.active.find_by_permalink!(params[:id])

0 comments on commit 3d739e8

Please sign in to comment.