nicolaslopezj / roles

The most advanced roles package for meteor
MIT License
87 stars 13 forks source link

Quick fix to support "grounded" collections (with ground:db) #31

Open banjerluke opened 6 years ago

banjerluke commented 6 years ago

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!