Meteor-Community-Packages / meteor-roles

Authorization package for Meteor, compatible with built-in accounts packages
http://meteor-community-packages.github.io/meteor-roles/
MIT License
921 stars 168 forks source link

`getUsersInRole` now passes through query options to Meteor.users.find #77

Closed ianserlin closed 9 years ago

ianserlin commented 9 years ago

Makes getUsersInRole usable inside publish functions by granting the ability to limit the fields returned on the matching Meteor.user documents.

The PR accomplishes this by simply passing through an optional options object identical to the Collection.find options object to the final call to Meteor.users.find.

Test and documentation update included.