Skip to content

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

@jacebenson

Description

@jacebenson

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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions