SupabaseS
Supabase4y ago
dubo

RLS not working? Wrong Command?

When enabling RLS and writing this policy and expecting to be able to view the team when logged in but it returns an empty object.

The "owner" collumn in teams is a relation to auth.users.id.

 create policy "Users can manage their own teams." on teams
  for all with check (auth.uid() = owner);


I tried turning off RLS and it works fine.

Am not familiar with SQL, is the above command correct?
Was this page helpful?