kadirahq / subs-manager

Subscriptions Manager for Meteor
MIT License
358 stars 36 forks source link

when the user logout the app, he still able to find collections on console #78

Closed humbertocruz closed 7 years ago

humbertocruz commented 8 years ago

Hello,

I notice that the user still ablle to search collections using the console browser. For example: s = new SubsManager(); sub = s.subscribe('allUsers'); u = Meteor.users.find(); I tried put a condition on the publish ( if (!this.userId) return false ) but with that the user can't login.

what are the best way to avoid unauthorized users subscribe the data before login the app ?

thanks

Bandit commented 8 years ago

Call clear() after logout?

humbertocruz commented 7 years ago

great idea, thanks