public bool HasRight(int rightId, params int[] nodeIds) { if (IsSupper) { return(true); } if (nodeIds == null || !nodeIds.Any()) { return(false); } return(Rights.Where(c => nodeIds.Any(n => n == c.NodeId) && c.RightId == rightId).Any()); }
public IEnumerable <DataProcessingRegistrationRight> GetRights(int roleId) { return(Rights.Where(x => x.RoleId == roleId)); }