Skip to content

Fails when used in publish functions #1

@dandv

Description

@dandv

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions