Closed msamoylov closed 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.
RTFM first http://alanning.github.io/meteor-roles/classes/Roles.html#method_getUsersInRole
:-) 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
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.