/// <param name="actionContext">The context.</param> /// <returns>true if the control is authorized; otherwise, false.</returns> protected override bool IsAuthorized(HttpActionContext actionContext) { string user = actionContext.GetUserName(); string script = actionContext.GetRouteData("script") as string; return(CheckPrivilege(script, user)); }