You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Setup Row Level CRUD for things like Users. e.g. the logged in user should be able to edit their own user even if they shouldnt be able to edit others.
#100
Closed
jacebenson opened this issue
Dec 10, 2021
· 4 comments
I'm not sure the best way to do this, at the time of writing, this can be accomplished with before read rules. I don't like this but, it would make life pretty simple. Just modify the query appropriately for the logged in user.
If they only can see their records, when they do a search for preferences containing language, then append { userId: session.user.id } to each of their queries.
Another option would be to make another folder for these kind of rules where by role we limit what they can see.
The text was updated successfully, but these errors were encountered:
I'm not sure the best way to do this, at the time of writing, this can be accomplished with before read rules. I don't like this but, it would make life pretty simple. Just modify the query appropriately for the logged in user.
If they only can see their records, when they do a search for preferences containing language, then append { userId: session.user.id } to each of their queries.
Another option would be to make another folder for these kind of rules where by role we limit what they can see.
The text was updated successfully, but these errors were encountered: