Not sure where the problem is but when I try to add a group as shown on example:
Roles.addUsersToRoles(userId, ['manage-team','schedule-game'], 'manchester-united')
server console would throw an error: TypeError: Cannot read property 'indexOf' of undefined, if I remove group then it works fine. How do I add groups?
Hi guys,
Not sure where the problem is but when I try to add a group as shown on example: Roles.addUsersToRoles(userId, ['manage-team','schedule-game'], 'manchester-united')
server console would throw an error: TypeError: Cannot read property 'indexOf' of undefined, if I remove group then it works fine. How do I add groups?