Hey everyone ![]()
My users have a bunch of names allocated to them as customers they manage, similar to an acocount manager.
I have a simple list collection where each item contains one of these customers. I need to filter the collection to show only the items managed by the signed-in user. This has already been achieved.
The issue I have is that I need to override that filter if the user signed in is ADMIN (manages ALL customers, therefore need to show ALL items).
What is the best way to achieve this?