© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
S
Supabase
•
4y ago
•
11 replies
merlo
RLS - Help with Insert Policy
My objective
: only an
admin
can insert an amenity
, and it must match the id of the condo the admin already belongs too
.
I
'm trying
:
exists (
select 1
from condos
where auth.uid() = condos.admin_id
)
exists (
select 1
from condos
where auth.uid() = condos.admin_id
)
But I
'm getting new row violates row
-level security policy for table
"
amenities
\
What am I doing wrong
?
Supabase
Join
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.
45,816
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
Recent Announcements
Similar Threads
RLS policy help
S
Supabase / help-and-questions
3y ago
need help with RLS policy
S
Supabase / help-and-questions
5mo ago
RLS policy blocking Insert from Debug
S
Supabase / help-and-questions
5mo ago
RLS Policy
S
Supabase / help-and-questions
4mo ago