RLS and auth.uid()
Hey guys, I'm trying to figure out the following please:
When I enable the following policy for a table (security_group_assignment) on SELECT,
When I select data from that table and include a column from another table such as:
I would expect to ONLY get back the rows that match the security_group.name AND match the calling users UID with the profile_id.
However, even when the name doesn't match, I get back a row with the following data?
If the security_group is null, why is it even returning that row?? I would expect this to return no rows.
Here is the supabase client call:
When I enable the following policy for a table (security_group_assignment) on SELECT,
When I select data from that table and include a column from another table such as:
I would expect to ONLY get back the rows that match the security_group.name AND match the calling users UID with the profile_id.
However, even when the name doesn't match, I get back a row with the following data?
If the security_group is null, why is it even returning that row?? I would expect this to return no rows.
Here is the supabase client call: