© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•4y ago•
19 replies
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);
 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?
Supabase banner
SupabaseJoin
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.
45,816Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

RLS not working
SupabaseSSupabase / help-and-questions
3mo ago
Storage RLS Template not working
SupabaseSSupabase / help-and-questions
13mo ago
RLS policy 'in' not working
SupabaseSSupabase / help-and-questions
4y ago
Realtime not working with RLS
SupabaseSSupabase / help-and-questions
4y ago