Β© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabaseβ€’3y agoβ€’
4 replies
Reaper9000

ROW LEVEL SECURITY ISSUE

I have been checking the thread but none answer my question. I follow on how to create row level secuity but none seem to work. I confirm user is logged in. For context this is local dev supabase with Next js 14 using the SSR packages.

   const { error } = await supabase
          .from("diet_preferences")
          .insert([{ ...convertToJson }])
          .select();

        if (error) {
          throw error;
        }
   const { error } = await supabase
          .from("diet_preferences")
          .insert([{ ...convertToJson }])
          .select();

        if (error) {
          throw error;
        }
Screenshot_2023-12-17_001309.png
Screenshot_2023-12-17_001433.png
Screenshot_2023-12-17_001537.png
Screenshot_2023-12-17_001657.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

Help with row level security
SupabaseSSupabase / help-and-questions
12mo ago
StorageApiError: new row violates row-level security policy
SupabaseSSupabase / help-and-questions
4mo ago
upsert() new row violates row-level security policy
SupabaseSSupabase / help-and-questions
4y ago
row level security and react query
SupabaseSSupabase / help-and-questions
4y ago