title: Access user/userId inside a function called by a publish
body: <p>I have a <code>Meteor.publish</code> in my code, that calls another function, that calls another one, and so on. Then, in the most inner function, I need to know what <em>user</em> is the active one.</p>
  
  <p><code>Meteor.user()</code> can't be used. It says</p>
  
  <blockquote>
    <p>Meteor.userId can only be invoked in method calls. Use this.userId in publish functions.</p>
  </blockquote>
  
  <p>and <code>this.userId</code> is not acessible inside the inner function.</p>
  
  <p>What can be done then?</p>