© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•3y ago•
21 replies
Napolean_Solo

What gets precedence in RLS and CLS?

Hi,

I am setting up an RLS policy that gives SELECT access to user_id = auth.uid(). And I am also setting a CLS that basically grants update access to only specific columns column1 and column2.

So Does RLS get any precedence over CLS? If so, will I also have to create RLS policy to allow UPDATE or this will work just fine?
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

Using RLS for CLS
SupabaseSSupabase / help-and-questions
6mo ago
what is RLS security ... ?????
SupabaseSSupabase / help-and-questions
4y ago
Views and RLS?
SupabaseSSupabase / help-and-questions
6mo ago
RLS and APIs
SupabaseSSupabase / help-and-questions
3y ago