Closed Floriferous closed 4 years ago
The following code doesn't work as I would expect:
const userId = Meteor.users.insert({}); Roles.setUserRoles(userId, 'admin'); Roles.userIsInRole(() => {}, 'admin'); // Returns true
The line here should check that the id is a string.
This used to fail properly in Roles V1.
Is this only related to v2 or also to v3?
Not sure, haven’t looked at v3 code.
Fixed in #324.
The following code doesn't work as I would expect:
The line here should check that the id is a string.
This used to fail properly in Roles V1.