I have an administrator account and an user account for my application. Let's say that in the main account I have a couple of delivery boys.
EXAMPLE : Ram, Karan, Arjun, Ritvik.
Now I create user accounts for all the delivery boys. Now when I log in from Ram's account(let's say), I want to show the deliveries that are assigned just to him. I have tried restricting visibility and everything. But in Rams account, I can see the deliveries of Karan, Arjun and Ritvik also.
Example: List of orders- The superadmin assigns them:
ORDER ABC- Ram
ORDER PQO- Karan
ORDER WER- Arjun
ORDER OIU- Ram
So when "Ram" logs in, I want that only Order ABC and Order OIU be displayed. Let's assume Rams Email ID is
ram@gmail.com.
I cannot for the life in me figure out how to achieve this. Any help is much appreciated. Thanks