© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•3y ago•
4 replies
Grantly

RLS return true if ANY are true.

I have a fairly complex RLS security rule that gives me a list of Booleans. I am hoping to return true if any value in my list is true. I am far less comfortable in SQL (and declarative languages generally) so I might be missing something very obvious.

-> Any does not actually work, I just want some way to true if ANY of the values return from this select statement are true:
ANY (select permissions.course_select from permissions where (permissions.role = (SELECT course_roles.role from course_roles where (course_roles.course = (SELECT course from concept_course_join where (concept_course_join.concept = id))))))
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

Are RLS rules whitelist?
SupabaseSSupabase / help-and-questions
4y ago
[GraphQl] Using Anon key does not return any data from RLS protected tables
SupabaseSSupabase / help-and-questions
4y ago
404 on update if rls enabled
SupabaseSSupabase / help-and-questions
4y ago
Supabase query not returning anything despite RLS being true
SupabaseSSupabase / help-and-questions
13mo ago