inProgress-team / react-native-meteor

Meteor Reactivity for your React Native application :)
MIT License
693 stars 210 forks source link

Roles are not published with Meteor.user() #356

Closed fidelsam1992 closed 4 years ago

fidelsam1992 commented 4 years ago

Add this publication to the server to solve this issue

Meteor.publish(null, function () {
    if (this.userId) {
        return Meteor.users.find(this.userId);
    } else {
        this.ready()
    }
})