     )
 )
 
-Meteor.startup( ->
-  Session.set 'user_id', Users.findOne( {} )['_id']
-)

)

Meteor.publish("assigned_posts", ->
  user_id = Session.get('user_id')
  if user_id
    ids = []
    for item in Session.get( 'my_posts_query' ).fetch() #For each of my posts

)

Meteor.publish("my_posts", ->
  user_id = Meteor.call('userId')
  if user_id
    q = Posts.find( author_id: user_id )
    Session.set( 'my_posts_query', q)
