title: Connects to database while guest, can't connect while logged in
body: <p>I got movies controller with index action, it returns view with list of my movies from database. It works perfect. List is loaded, and buttons aviable only for "admin" role are hidden thanks to this code (when i comment it, it works even if logged):</p>
  
  <pre><code>@if (Roles.IsUserInRole("Admin"))
      {
          &lt;td&gt;
              @Html.ActionLink("Edit", "Edit", new { id = item.Id }) |
              @Html.ActionLink("Details", "Details", new { id = item.Id }) |
              @Html.ActionLink("Delete", "Delete", new { id = item.Id })
          &lt;/td&gt;
      }
  </code></pre>
  
  <p>Than I am logging on account with "Admin" role assigned. View can't load because controller can't load films. </p>
  
  <p>Work while not logged, it is how it looks like.</p>
  
  <p><a href="https://i.stack.imgur.com/NLfPC.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/NLfPC.png" alt="everything works while not logged"></a></p>
  
  <p>Not work while logged in, it is how it look like.</p>
  
  <p><a href="https://i.stack.imgur.com/K7Qsa.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/K7Qsa.png" alt="not work while logged"></a></p>
  
  <p>And yeaa, i know controller should not contain logic and operations on db, i will refactor it later!</p>