title: How can i access the user Role in Form Builder class in Symfony2
body: <p>I have the form as <code>UserType</code> with field like this</p>
  
  <pre><code>-&gt;add('description')
    -&gt;add('createdAt')
  </code></pre>
  
  <p>Now i want that if the Logged in user has Role <code>(ROLE_SUPERADMIN)</code> then he can see extra fields like this</p>
  
  <pre><code> -&gt;add('description')
  if($user.hasRole(ROLE_SUPERADMIN))
  -&gt;add('createdAt')
  </code></pre>
  
  <p>Actually i have to do that for many fields . is there any way i can make some custom type so that if that type is there then only admin can see those like</p>
  
  <p><code>-&gt;add('createdAt',"MyCustomType")</code></p>