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

[Feature request] Returning all users in role #78

Closed msamoylov closed 9 years ago

msamoylov commented 9 years ago

Use case: A new entry is added to the collection and we need to alert admins about that. We need to select all admins and send them an email message.

msamoylov commented 9 years ago

RTFM first http://alanning.github.io/meteor-roles/classes/Roles.html#method_getUsersInRole

alanning commented 9 years ago

:-) Glad you found it. There's also a pull request that we'll merge in soon that will allow you to select which fields to return: https://github.com/alanning/meteor-roles/pull/77