title: expose partial data of a model for users and all data for admins, sails.js
body: <p>I have a model "user":</p>
  
  <p>module.exports = {</p>
  
  <pre><code>attributes: {
      facebook_id: {
          type: 'integer',
          required: false
      },
      name: {
          type: 'string',
          required: false
      },
      email: {
          type: 'string',
          required: true,
          unique: true
      },
      pass: {
          type: 'string',
          required: false
      },
      writer: {
          model: 'writer'
      },
      toObject: function () {
          return {
              name: this.name,
              id: this.id
          };
      }
  }
  </code></pre>
  
  <p>};</p>
  
  <p>I'm trying to expose the attributes 'name' and 'id' to all users, but I want the admins to see all of it, how do I do it?
  currently it exposes just 'name' and 'id' to everyone or just to admins (depend on the policies.js).</p>