Closed danyhiol closed 4 years ago
What you mean by parent roles
?
In case you mean the roles assigned to a user, you can use: Roles.getRolesForUser(user, { onlyAssigned: true })
https://github.com/Meteor-Community-Packages/meteor-roles/blob/master/roles/roles_common.js#L710
Exactly what I was looking for. Thanks.
Is there any function to get only user's
parent roles
? Something likeRoles.getAllParentRoles(userId);