mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Replace current_spree_user method
This wasn't working before but now seems to be fixed
This commit is contained in:
@@ -8,7 +8,7 @@ module Spree
|
||||
end
|
||||
|
||||
def spree_current_user
|
||||
@current_spree_user ||= request.env['warden'].authenticate
|
||||
current_spree_user
|
||||
end
|
||||
|
||||
delegate :login_path, to: :spree, prefix: true
|
||||
|
||||
Reference in New Issue
Block a user