-
Hello everyone! I have a weird issue and I'm not sure what's wrong with my code. I created a public.users table that will automaticaly create a row with id/email and an empty "twitter" column when a new user is created with the auth system. I can easily retrieve the information from that table with a simple :
(I added a policy on this table : (uid() = id)) But if I try something really simple like that :
It doesn't work! Am I missing something? I also tried with .eq("id", user.id), even though I already have a policy that filter the result, but without any success. Is this an issue with the policy I added? Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Ok I just needed to post a thread to find the answer the minute after. I forgot policies are just for one action, I created one for "Select", but not for "Update"... Now it works :) Maybe an improvement -> We need to click on "Advanced" to create a policy that apply to all options. Maybe the "All" tab can be available all the time? |
Beta Was this translation helpful? Give feedback.
Ok I just needed to post a thread to find the answer the minute after.
I forgot policies are just for one action, I created one for "Select", but not for "Update"... Now it works :)
Maybe an improvement -> We need to click on "Advanced" to create a policy that apply to all options. Maybe the "All" tab can be available all the time?