RLS - Help with Insert Policy

My objective: only an admin can insert an amenity, and it must match the id of the condo the admin already belongs too.

I'm trying:

exists (
  select 1
  from condos
  where auth.uid() = condos.admin_id
)


But I'm getting new row violates row-level security policy for table "amenities\

What am I doing wrong?
Was this page helpful?