Meteor-Community-Packages / meteor-roles

Authorization package for Meteor, compatible with built-in accounts packages
http://meteor-community-packages.github.io/meteor-roles/
MIT License
921 stars 166 forks source link

getGroupsForUser returns empty array when reloading page #260

Closed znat closed 6 years ago

znat commented 6 years ago

I am using getGroupsForUser in the onEnter function or a React Router Route definition As long as I am navigating using the React Router built-in functions (push, replace) or <Link/> tags, all is good. But when I reload a page or try to access a page from its url, getGroupsForUser returns []

znat commented 6 years ago

Nothing to do with roles, was a subscription related issue