-
Notifications
You must be signed in to change notification settings - Fork 117
Description
How can one limit access to resources, based on application logic? I couldn't find anything in documentation about this, I'm not even sure it's possible.
For example User A should not be able to access resources belonging to User B. In the typical web app backed by an ORM, that's pretty straight forward.
I'm using fortune-json-api and MongoDB adapter. From what I understand, to interfere with what's going on during a request, my only option is using hooks.
The only other solution I can think of is using classic Express app, manually define routes, and use the store like I would use an ORM (but doesn't this defeat the purpose?). And since I want to stick to JSON:API, I probably need to find a serializer as well.
Cheers!
Edit
I found #270 in the meantime. I'll try to find out if something similar works for my case.