yogiben / meteor-admin

A complete admin dashboard solution
https://atmospherejs.com/yogiben/admin
GNU General Public License v3.0
827 stars 261 forks source link

Why wait on all Users in router to be loaded? #342

Open Obiwarn opened 8 years ago

Obiwarn commented 8 years ago

Admin router seems to wait on "adminUsers" publication. But this seems to pub all users, right? Why is that?

lib/server/publish.coffee:

Meteor.publish 'adminUsers', ->
    if Roles.userIsInRole @userId, ['admin']
        Meteor.users.find()
    else
        @ready()