DanMossa
06/15/2022, 11:00 PMgaryaustin
06/15/2022, 11:12 PMDanMossa
06/15/2022, 11:24 PMgaryaustin
06/15/2022, 11:28 PMScott P
06/15/2022, 11:37 PMWHERE some_table.user_id = auth.uid()
. You can always add a OR auth.role() = 'administrator'
check if you want to be able to see all the data from the view when logged in to the dashboard
Next version of Postgres (15?) supports view policies but in the mean time, the above seems the only feasible way to do RLS-like functionality on viewsDanMossa
06/16/2022, 12:08 AM