yogiben / meteor-admin

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

Limit data depending on current user #345

Open marinosm opened 8 years ago

marinosm commented 8 years ago

Can I somehow let specific users access Admin but only let them see specific data from each collection?

fermuch commented 8 years ago

Oopsie whoopsie, this comment was an error!

marinosm commented 8 years ago

The comment from @fermuch was by mistake..

I have tried limiting the data per user in the server's publish function for each collection but it doesn't really work..

For example, say I have 8 entries in a collection and only 4 of them should be shown to the particular user currently logged in, even if I just make sure to only publish those 4 items from the server, I still get 8 rows in my View All table, with 4 of them filled in with 'undefined' values. Also the widget in the Dashboard still advertises 8 items..

So I guess somehow Meteor admin reads the number of items from the server instead on relying on published data...

Is there a solution or a workaround for this?