Closed ghost closed 8 years ago
I need to know if my user is an admin before I block them from certain routes. But at the time that FlowRouter.triggers.enter runs, Meteor.user() is not ready to give me Meteor.user().profile.
How can I do this?
Resolved using FlowRouter.wait()
I need to know if my user is an admin before I block them from certain routes. But at the time that FlowRouter.triggers.enter runs, Meteor.user() is not ready to give me Meteor.user().profile.
How can I do this?