Issue with SELECT Policy

This is my first time using Supabase and I am trying to make a policy that allows a user to view portfolios uploaded by his team. First, it checks the user's email using auth.jwt(), then finds the team number of the user in another table before returning all the rows that have that team number attached with them. However, for some reason, it seems to fail silently and doesn't give me any data. Some help would be appreciated.
image.png
image.png
image.png
Was this page helpful?