public IEnumerable <ProjectFieldDropdownValue> GetPossibleValues( AccessArguments modelAccessArguments) { return(OrderedValueCache.Value.Where(v => SelectedIds.Contains(v.ProjectFieldDropdownValueId) || (v.IsActive && (v.PlayerSelectable || modelAccessArguments.MasterAccess)) )); }
public bool HasEditAccess(AccessArguments accessArguments) { return(accessArguments.MasterAccess || (accessArguments.PlayerAccessToCharacter && Field.CanPlayerEdit && Field.FieldBoundTo == FieldBoundTo.Character) || (accessArguments.PlayerAccesToClaim && Field.CanPlayerEdit && (Field.ShowOnUnApprovedClaims || accessArguments.PlayerAccessToCharacter))); }
public bool HasViewAccess(AccessArguments accessArguments) { return(Field.IsPublic || accessArguments.MasterAccess || (accessArguments.PlayerAccessToCharacter && Field.CanPlayerView && Field.FieldBoundTo == FieldBoundTo.Character) || (accessArguments.PlayerAccesToClaim && Field.CanPlayerView && Field.FieldBoundTo == FieldBoundTo.Claim)); }