title: Whitelist Controller Action in asp.net mvc 5
body: <p>I have a question about the <code>[Authorization]</code> annotation. I have a controller with the <code>[Authorization(Roles ="admin")</code> annotation. In the controller I have one action that doesn't need to be admin, but still logged in. How is this done? I have tried creating a custom <code>AuthorizationAttribute</code> class, and placing it on the action. This doesn't work, is there a way to override the <code>[Authorization]</code> annotation?</p>
  
  <p>Cheers.
  </p>
  
  <pre><code>[Authorize(Roles = "admin")]
  public class UserController : Controller
  { 
      [OwnDataAuthorize]
      public async Task&lt;ActionResult&gt; Details(string id)
          {
               //.....
          }
          //...
      }
  </code></pre>