radiegtya / meteoris2

a Realtime Javascript Boilerplate base on Meteor Js Framework
MIT License
246 stars 45 forks source link

records ownership #24

Closed MercedesAMG1 closed 9 years ago

MercedesAMG1 commented 9 years ago

need a way to make records in collections only available to the logged in user who created the records

radiegtya commented 9 years ago

Hi @MercedesAMG1

I think it was about the meteor basic logic, and not about meteoris. just add criteria in the query. ex:

Posts.find({createdUserId: Meteor.user()._id});

I think I'll close this issue.

Thanks @MercedesAMG1