I have to give access rigths to the users of a website. I am doing the filtering here:
protected override void OnActionExecuting(ActionExecutingContext filterContext)
{
}
The problem is that I cannot distinguish full View request such as 'Index' from PartialViewRequests or AJAX calls requests.
Therefore the page 'Index' has access but the 'PartialViewGridViewForIndex' does not have access.
The property ControllerContext.IsChildAction does not help either.