Caot understand why it restrict me accessing Meteor.userId() from route with following error:
Error: Meteor.userId can only be invoked in method calls. Use this.userId in publish functions. at AccountsServer.userId (packages/accounts-base/accounts_server.js:82:13) at Object.Meteor.userId (packages/accounts-base/accounts_common.js:223:19) at Object.get [as action] (server/main.js:15:28) at Route.share.Route.Route._callEndpoint (packages/nimble_restivus/lib/route.coffee:147:25) at packages/nimble_restivus/lib/route.coffee:59:33 at packages/simple_json-routes.js:98:9
It looks like i forget about publishing something.. but :
** You've set up some data subscriptions with Meteor.publish(), but
** you still have autopublish tued on. Because autopublish is still
** on, your Meteor.publish() calls won't have much effect. All data
** will still be sent to all clients.
Very strange, how do you resolve this issue ? I'm new with meteor, but i don't have (google too) any idea how resolve this issue.
