javascript - Restricting The Viewing of Forms Per User -


please assist following:

i'm trying restrict viewing of forms using bootstrap , meteor. in other words, user logs in , creates simple (or 2, or 3...) form using modal displays in html on panel. how ensure when user b logs in, sees particular forms , not "user a's" forms?

i haven't included code haven't started working on problem yet.

thank you.

that's need deal using publications/subscriptions. see here , here learning ressources.

basically, should happen when user creates form (or object), store collection along user id (meteor.userid()). subscribe publication in page send items belonging current user id.

that should solve problem, , make ready similar (and common) cases need disclose selected information only, depending on context or user. moreover, means users able find items left in previous sessions.


Comments

Popular posts from this blog

PHP DOM loadHTML() method unusual warning -

python - How to create jsonb index using GIN on SQLAlchemy? -

c# - TransactionScope not rolling back although no complete() is called -