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

Suggestion: Template Helper Add User Parameter #104

Closed markudevelop closed 9 years ago

markudevelop commented 9 years ago

isInRole is great template helper but I found myself in need of also checking specific users to display badges of "Admin", "Editor" so I also publish the roles of those users of specific group and it have my own template helper. This is only a small change in the function :)

alanning commented 9 years ago

Thanks for the suggestion. I'm not quite following...could you give a little example of how the changed template helper would be used in a template?