Remove try_spree_current_user

This can be done because the method is defined in OFN's ApplicationController, so spree_current_user is available in all controllers
This commit is contained in:
Luis Ramos
2020-06-27 16:08:52 +01:00
parent 144811268e
commit 1666ffb191
11 changed files with 22 additions and 26 deletions

View File

@@ -53,7 +53,7 @@ module Api
# Use logged in user (spree_current_user) for API authentication (current_api_user)
def authenticate_user
return if @current_api_user = try_spree_current_user
return if @current_api_user = spree_current_user
if api_key.blank?
# An anonymous user