I have successfully added "Class"-level ACL's, to only allow authorized users access my model:
.../server/ModelObj.js
"acls": [
{
"accessType": "*",
"principalType": "ROLE",
"principalId": "$unauthenticated",
"permission": "DENY"
}
]
This is great, but my applications needs ACL's on a even lower level - object level.
When a User, which belongs to a Role, creates a new object, the object must only be accessible by other users, who have the same role.
Is this the way to go around the problem in Loopback, or do they provide a different way?
Thanks in advance, Jesper.