strongloop / loopback-example-access-control

An example demonstrating LoopBack access control mechanisms.
Other
370 stars 168 forks source link

Is it possible to filter the projects owned by an owner without adding additional API? #91

Closed jeroldlin closed 7 years ago

jeroldlin commented 7 years ago

E.g. I want to get all the projects belongs to an owner

call - GET /api/projects

and setup the project model like this:

"acls": [ { "accessType": "*", "principalType": "ROLE", "principalId": "$everyone", "permission": "DENY" }, { "accessType": "READ", "principalType": "ROLE", "principalId": "$owner", "permission": "ALLOW" } ]

stale[bot] commented 7 years ago

This issue has been closed due to continued inactivity. Thank you for your understanding. If you believe this to be in error, please contact one of the code owners, listed in the CODEOWNERS file at the top-level of this repository.