Ejemplo n.º 1
0
 public override void OnAuthorization(AuthorizationContext filterContext)
 {
     if (!SessionInfo.CheckIfUserHasAnyRole())
     {
         throw new UnauthorizedAccessException();
     }
 }