B2B customers can have 2 different permissions on company locations, either “Location Admin” or “Ordering Only”. I would like to display some content in the theme only for Location Admins. How could I achieve that using liquid? I can’t find any field in Customer liquid object that would give me that information.
This is not possible through liquid at the moment.
What I did is create a Lambda Function to fetch Customer Company role using Admin API and restrict endpoint with a Proxy App for only logged in customers.
That’s how I was able to identify “Location admin” users.
Cheers,
Enrique