I have a custom customer attribute, which isn't required, so it isn't set to every customer. but when I ask it if a customer has the data. (hasData('attribute')
) if it doesn't exist it returns the currently logged in customer's data!
Customer 1: The attribute set is to 10. Customer 2: doesn't have it set.
if I log in with the Customer to and ask Customer 1 data, I get the correct data. but another way around : log in with Customer 1: ask for customer 2 data and get back Customer 1 data!
here is the source code I am using