managed-users icon indicating copy to clipboard operation
managed-users copied to clipboard

Allow permissions to be checked from Meteor publish functions.

Open awwx opened this issue 11 years ago • 0 comments

Meteor.user() and Meteor.userId() can't be called from Meteor.publish functions. This commit adds an optional userId argument to isAdmin and hasPermission, allowing permissions to be checked from publish functions.

awwx avatar Aug 18 '13 15:08 awwx