mikemclin / angular-acl

Role-based permissions for AngularJS
196 stars 49 forks source link

Feature request #30

Open ghost opened 6 years ago

ghost commented 6 years ago

Could be possible to add nested abilities? so for example:

An user as member can view_content but only from page1, 2 & 3.

This is just an example, I wonder if you have thought in the possibility to add this feature.

var aclData = {
    guest: ['login'],
    member: ['logout', { view_content: ['page1', 'page2', 'page3']}],
    admin: ['logout', 'view_content', {manage_content: ['page8', 'page9', 'page10']}]
  }

Thanks!

naitik0212 commented 6 years ago

I need something similar to a webpage as well... I need to give access based on user roles... So only certain headers are allowed to some of the users and rest are not