© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•4y ago•
5 replies
Philani

RLS

I am working on an ecommerce website and I am having trouble with RLS. I have enabled RLS on an order_item table with the following columns: id,created_at, quantity, order_id & profile_id.
The profile_id column maps to the user's id from the auth table.

I have enabled read access based on the following statement: auth.uid() = profile_id however when I query the order_item table with the right user I am still getting an empty array.

I am using NextJS
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
SupabaseSSupabase / help-and-questions
4y ago
rls issue
SupabaseSSupabase / help-and-questions
2w ago
Supabase RLS
SupabaseSSupabase / help-and-questions
3w ago
View RLS
SupabaseSSupabase / help-and-questions
2mo ago