onury / accesscontrol

Role and Attribute based Access Control for Node.js
https://onury.io/accesscontrol
MIT License
2.21k stars 178 forks source link

how to control a sub resource in an API? #88

Closed musabkhunaijir closed 4 years ago

musabkhunaijir commented 4 years ago

(users) is working fine:

users: {
      'create:any': ['*'],
      'read:any': ['*'],
      'update:any': ['*'],
      'delete:any': ['*'],
}

but when trying (users/profile) is not working:

'users/profile': {
      'create:any': ['*'],
      'read:any': ['*'],
      'update:any': ['*'],
      'delete:any': ['*'],
}
musabkhunaijir commented 4 years ago

sorry, the bug was in my code