Skip to content

armgit / spree

Public Imported from GitHub
0

Open Source Platform for DTC, B2B Commerce, Marketplaces & Omnichannel. REST APIs, TypeScript SDKs, and production-ready Next.js storefront. Self-host it. Own your data. No vendor lock-in. Zero platform fees.

restore accidentally removed method

KacperMekarski92fedfa90023
diff --git a/api/app/controllers/spree/api/v2/storefront/account_controller.rb b/api/app/controllers/spree/api/v2/storefront/account_controller.rb
index 1c76392cce..498c38c9bf 100644
--- a/api/app/controllers/spree/api/v2/storefront/account_controller.rb
+++ b/api/app/controllers/spree/api/v2/storefront/account_controller.rb
@@ -18,6 +18,10 @@ module Spree
private
+ def resource
+ spree_current_user
+ end
+
def resource_serializer
Spree::Api::Dependencies.storefront_user_serializer.constantize
end