-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Description
Hi,
I have a few questions about authentication:
I have model A and A hasMany B. Also, A has a property "users" which holds links to users that should be able to access it. How can I configure B, so that it can be read & written only by users allowed to A? Example high level code:
A.hasMany('b', {model: B});
A.hasMany('users', {model: User});I am a bit lost for this: should I DENY all in B, and work only with hooks? But it looks like hooks only work with remote methods, so how can I protect B so that it can be listed with A only if User is in A.users?
Metadata
Metadata
Assignees
Labels
No labels