private static bool CheckRights(Type graphType, Type cacheType) { PXCacheRights rights; List <string> invisible = null; List <string> disabled = null; var node = PXSiteMap.Provider.FindSiteMapNode(graphType); if (node == null) { return(false); } PXAccess.Provider.GetRights(node.ScreenID, graphType.Name, cacheType, out rights, out invisible, out disabled); var actionName = "Approve@Action"; if (disabled != null && CompareIgnoreCase.IsInList(disabled, actionName)) { return(false); } return(true); }
public bool Contains(string field) { return(CompareIgnoreCase.IsInList(_Keys, field)); }