Skip to content

Allow permissions to be checked from Meteor publish functions.#14

Open
awwx wants to merge 2 commits into
jzgoda:masterfrom
awwx:permissions-from-publish
Open

Allow permissions to be checked from Meteor publish functions.#14
awwx wants to merge 2 commits into
jzgoda:masterfrom
awwx:permissions-from-publish

Conversation

@awwx

@awwx awwx commented Aug 18, 2013

Copy link
Copy Markdown
Contributor

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 added 2 commits August 18, 2013 10:53
The package.js on_test needs to include "accounts-password" for the
tests to see "Accounts".
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant