Hello,
There are 2 things I want to do. I want to give vendors permission to see payout invoices from the backend (currently they can only see order invoices) and I want to give vendor permission to see a custom document made by me. I learned how to use the schema for vendor privileges and I managed to allow them to see both the payout invoice and my custom document.
The problem I'm facing is how can I restrict for example the payout invoice so that only the vendor from the invoice can see it. If I give access to vendors in the backend to the invoices, one vendor can see ALL invoices if they have the link. I saw that the order invoices are restricted to other vendors and I couldn't figure how it was done. Can anyone explain this to me?
Hopefully I'm explaining this clearly:
1. Payout Invoice -> Vendor access (I know how to do this part) -> Only one vendor should see this and admin (I don't know how to do this)
2. Custom Document -> Vendor access -> Only one vendor should see this and admin