How to connect one user roles with their cart?

Hi, i’m building an online coffee shop, so as a regular user when i something add to cart and than switch to administrator role he can also see a regular user cart, what can i do to each user have it’s own shopping cart? i tried with session but when i put 1-1 relationship with cart i get error, and 1-* isn’t working, plz help!
1 answers

Hi Nemanja,

you have to define an Access Rule to your entity.

Check this document