Closed zimt28 closed 9 years ago
Use this code instead of your example.
myCollection.attachRoles('collectionName')
If all deny rules return false, and at least one allow returns true, the action will be allowed.
All right, just thought about it in a wrong way .. Thanks, was able to fix it by using allow rules as well
I'm returning true for all allow rules and just using deny. The problem with this approach is, that
Roles.deny
returns false, if the user doesn't have a role or if the role doesn't have any deny rules registered for the action. How could I fix this?Edit: Some code: