I use a custom AuthorizationFilter like the followings:
public class ActionAuthorizeAttribute : AuthorizeAttribute {
protected override bool AuthorizeCore(Syste
Face the same issue just a moment ago and my solution is:
Define 2 attributes in your ActionAuthorizeAttribute class e.g.
public string ControllerName {get;set;}
public string ActionName {get;set;}
While annotating your action of the controller specify them e.g.
[ActionAuthorize(Roles="Admin", ContollerName="ControllerName",ActionName="ActionName")]**
public ActionResult Disable(int id)
{
...
}