In my Meteor app, I've replaced the Meteor.users collection with a Ground.Collection (using the ground:db package) for offline support. It wasn't working with this roles package because the Meteor.users collection was being stashed in Roles._usersCollection when the package was loaded... though I could see no reason why this need to be done, and Meteor.users was also being called directly here and there anyway.
I simply replaced Roles._usersCollection with Meteor.users in roles.js. Easy, works like a charm now, and probably saves a few bytes of file size to boot!
In my Meteor app, I've replaced the
Meteor.users
collection with aGround.Collection
(using the ground:db package) for offline support. It wasn't working with this roles package because theMeteor.users
collection was being stashed inRoles._usersCollection
when the package was loaded... though I could see no reason why this need to be done, andMeteor.users
was also being called directly here and there anyway.I simply replaced
Roles._usersCollection
withMeteor.users
inroles.js
. Easy, works like a charm now, and probably saves a few bytes of file size to boot!