public static bool HasPermission(this IPrincipal principal, params string[] operationNames)
 {
     return(operationNames.Any(x => principal.CheckPermission(x)));
 }