title: Permissions within views in ASP MVC
body: <p>I understand that you can use forms authentication to grant/deny access to certain pages based on the criteria of your choosing.</p>
  
  <p>However I wish to go in a little more specific than that and say, have different buttons appear for users based on thier permissions.</p>
  
  <p>I know I could do something like</p>
  
  <pre><code>if(((User)ViewData["CurrentUser"]).IsEmployee).....
  </code></pre>
  
  <p>But that doesn't seem very elegant and could get messy very quickly.</p>
  
  <p>Are there any guidelines/tools/framework features that could help me out here?</p>