meteor-user-session icon indicating copy to clipboard operation
meteor-user-session copied to clipboard

Fails when used in publish functions

Open dandv opened this issue 12 years ago • 1 comments

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.

dandv avatar Dec 08 '13 08:12 dandv

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 avatar May 06 '14 13:05 kevb