Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fails when used in publish functions #1

Open
dandv opened this issue Dec 8, 2013 · 1 comment
Open

Fails when used in publish functions #1

dandv opened this issue Dec 8, 2013 · 1 comment

Comments

@dandv
Copy link

dandv commented Dec 8, 2013

The code in common.js calls Meteor.userId(), and if that code is called from within a publish function, Meteor will issue this error:

Meteor.userId can only be invoked in method calls. Use this.userId in publish functions.
@kevb
Copy link

kevb commented May 6, 2014

I have the same issue in the onLogin function.

I'm going to try to fix it and submit a pull request. Hoping the developer is still around : )

kevb added a commit to kevb/meteor-user-session that referenced this issue May 6, 2014
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

No branches or pull requests

2 participants