Store Admin actions Creates Guest Records in Customer Table

1 month ago
Hi Team,

I am using Nop 4.2 and found that a lot of guest customers are created when logged in as a store admin and doing any activity like checking log activity, pressing Orders tab, I check the code and found that the below condition runs even if the logged-in user is the store owner admin:

if (customer == null || customer.Deleted || !customer.Active || customer.RequireReLogin)
        {
          customer = this._customerService.InsertGuestCustomer();
        }
Is that behaviour normal?

Thanks in advance,
Mahran
1 month ago
How do you know it's because " store admin and doing any activity"?  Did you check the IP address of the Guest customer?