How to access customers and their roles in code

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
14 anni tempo fa
Is there a way to access the logged in customer and view what roles they have assigned via the code behind?
14 anni tempo fa
1. Use the following statement to get current user: "NopContext.Current.User"
2. Use "CustomerRoles" property of "Customer" entity to get roles
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.