user_profiles table with a uuid field that references auth.users.id. When trying to create a new record for another table in the frontend I started to get the 403 error - new row violates row-level security policy for table \"locations\" error. After a lot of debugging I found that when I set the RLS to a fixed true value, it works, and returns the records I added directly on the DB, but with simply adding a user-match by uid (picture 1) in the RLS I go back to an empty list in the returned body and a 403 error when trying to create a record. The JWT sent in the request contains the right data and the right sub that is saved in the DB (picture 2) and the DB relation between tables is also ok (picture 3). I even check the query on the editor and it returned true (picture 4)


