How can i write this policy with [RLS]

I want to write an RLS policy where an authenticated user can edit or delete projects, but only if they are the companyAuthor of the company the project is assigned to. How can I achieve this?
image.png
Was this page helpful?