enti
04/06/2022, 3:48 PMNeedle
04/06/2022, 3:48 PM/title
command!
We have solved your problem?
Click the button below to archive it.Scott P
04/06/2022, 4:10 PMroot
and you had a column called user_id
passed out of that subquery, then WHERE root.user_id = auth.uid()
would mean that only the view would only show rows where that user_id
is present.
The downside of this is that it's not possible to view all data in the view via an SQL tool. You should be able to add an additional check such as current_user = "postgres"
(or whichever user you're viewing the database as) which would resolve that limitation.Needle
04/06/2022, 4:10 PMScott P
04/06/2022, 4:11 PMenti
04/06/2022, 4:23 PMDanMossa
04/06/2022, 7:37 PMScott P
04/06/2022, 7:43 PMWHERE
seems like the easiest solution to implementSteve
04/07/2022, 2:45 PMDanMossa
04/07/2022, 3:04 PMSteve
04/07/2022, 3:46 PM