supabase_flutter icon indicating copy to clipboard operation
supabase_flutter copied to clipboard

Data not inserted into the table while RLS is enabled

Open Sahil-kachhap opened this issue 3 years ago • 3 comments

I was referring to your code snippets for my own supabase project and tried inserting data into the supabase table but getting an error,

printing the response error, shows the following: PostgrestError(message: new row violates row-level security policy for table "user_info", code: 42361, details: null, hint: null). Any suggestion on how to resolve this @adityathakurxd

Sahil-kachhap avatar Dec 07 '21 16:12 Sahil-kachhap

Hey @Sahil-kachhap I understand your concern. Supabase 👁️💚👁️ has updated a lot since this tutorial. I might have to work on it again to understand why it could be happening but this looks like a security or permission issue.

Possibly look up the Row Level Security here: https://supabase.com/docs/guides/auth/row-level-security

Also, I'd insist referring the official docs instead here: https://supabase.com/docs/guides/with-flutter

adityathakurxd avatar Dec 07 '21 16:12 adityathakurxd

I really want to update this repo with latest information but haven't got the time. Sorry about that.

adityathakurxd avatar Dec 07 '21 16:12 adityathakurxd

I really want to update this repo with latest information but haven't got the time. Sorry about that.

No issues

Sahil-kachhap avatar Dec 07 '21 16:12 Sahil-kachhap