diff --git a/src/Web/Grand.Web.Common/WorkContext.cs b/src/Web/Grand.Web.Common/WorkContext.cs index 80e35d7ef..0d2588bfc 100644 --- a/src/Web/Grand.Web.Common/WorkContext.cs +++ b/src/Web/Grand.Web.Common/WorkContext.cs @@ -173,10 +173,10 @@ public virtual async Task SetCurrentCustomer() customer = await GetAuthenticatedCustomer(); if (customer != null) return _cachedCustomer = customer; - customer = await GetGuestCustomer(); + customer = await GetApiUserCustomer(); if (customer != null) return _cachedCustomer = customer; - customer = await GetApiUserCustomer(); + customer = await GetGuestCustomer(); if (customer != null) return _cachedCustomer = customer; customer = await GetSearchEngineCustomer();