Closed antonio-goncalves-unp closed 4 years ago
There is any support for groups with parents? It would be useful for this use case
groupA: {name:"StoreA"} groupB: {name:"StoreB"} groupC: {name:"StoreCluster",children:["StoreA","StoreB"]}
Roles.addUsersToRoles(joesUserId, ['Manage'], 'StoreCluster');
Roles.userIsInRole(joesUserId, 'Manage', 'StoreA'); // true if considering parent groups Roles.userIsInRole(joesUserId, 'Manage', 'StoreB'); // true if considering parent groups
For which version is this? v1 or v2?
This functionality has already been added in 2.x, as far as I understand from the example. Please ask me to reopen if it's not applicable.
There is any support for groups with parents? It would be useful for this use case
groupA: {name:"StoreA"} groupB: {name:"StoreB"} groupC: {name:"StoreCluster",children:["StoreA","StoreB"]}
Roles.addUsersToRoles(joesUserId, ['Manage'], 'StoreCluster');
Roles.userIsInRole(joesUserId, 'Manage', 'StoreA'); // true if considering parent groups Roles.userIsInRole(joesUserId, 'Manage', 'StoreB'); // true if considering parent groups