kadirahq / flow-router

Carefully Designed Client Side Router for Meteor
MIT License
1.09k stars 195 forks source link

Meteor.user() not ready inside FlowRouter.triggers.enter #652

Closed ghost closed 8 years ago

ghost commented 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?

ghost commented 8 years ago

Resolved using FlowRouter.wait()