© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•4y ago•
21 replies
Hink

Unable to insert based on user_id

Function works without RLS enabled.
Have attempted: (uid() = user_id).
CREATE POLICY "Enable all actions for users based on user_id" ON "public"."board"
AS PERMISSIVE FOR ALL
TO public
USING ((uid() = user_id))
WITH CHECK ((uid() = user_id))
CREATE POLICY "Enable all actions for users based on user_id" ON "public"."board"
AS PERMISSIVE FOR ALL
TO public
USING ((uid() = user_id))
WITH CHECK ((uid() = user_id))
image.png
image.png
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

Insert rows with user id (uuid)
SupabaseSSupabase / help-and-questions
4y ago
Query based on user ID and other Table
SupabaseSSupabase / help-and-questions
4y ago
How to return id upon Insert()
SupabaseSSupabase / help-and-questions
4y ago
Unable to insert into a table
SupabaseSSupabase / help-and-questions
4mo ago