Replies: 1 comment 3 replies
-
Is that the only policy on the table? That looks like an All policy. But if you have other policies for select or update they will still run. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to perform soft deletes of clients in my App. I have a "deleted_at" column in the "clients" table, to which I'm trying to set its value to a timestamp when that client is soft deleted.
Here is my handleDelete method for implementing soft deletes:
And here is my supabase cliente initialization:
This is not working, I get the following error when performing the request: "new row violates row-level security policy for table "clients""
This is the RLS policy I have created for the "clients" table:
If I disable RLS, it works. But it also works if I remove the "deleted_at" argument passed to .update() within the handleDelete() method. So I guess there is something wrong with that specific column, but after hours of burning my brain I could not come up with a solution.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions