alanning/meteor-roles — pull request #57 by rijk (2014-09-22 08:18:27+00:00)
Title: added isInRole() method with has() alias

I used the built-in `Meteor.user()` method, which will automatically throw a `Error: Meteor.userId can only be invoked in method calls. Use this.userId in publish functions.` error when called in the wrong place. After that, the call is passed on to `userIsInRole`.