SquireCore icon indicating copy to clipboard operation
SquireCore copied to clipboard

[Dev]: Privileged Deck Info

Open TylerBloom opened this issue 2 years ago • 2 comments

The SquireCore server needs to be selective with who can see deck information. Most tournaments that require deck reg are closed decklist tournaments. Tournaments should store if they are open or closed decklist tournaments. There should be a settings option to toggle that (with a default of closed).

SC should be selective with who can request a decklist. Tournament admin, judges, and the owner of the deck should always be able to see their decklist, but no one else if the tournament is closed decklist. There are a couple of ways of doing this, each with its own downsides. We could selectively strip out deck info from tournaments that are closed decklist based on who is requesting the info. Or we could always strip out this information and require folks to use the get decklist APIs.

TylerBloom avatar Aug 14 '22 16:08 TylerBloom

This is actually a bit deeper than that. Since we store everything as a tournament operation, we would have to selectively stip out that information too. Luckily, the validity of a deck is never checked so changing that info shouldn't matter. Still, this will be a tricky problem to get to work with the sync protocol.

TylerBloom avatar Aug 14 '22 16:08 TylerBloom

This applies to more than judge deck information. Judge and Admin Ids also apply here. Masking those will be much harder, though...

TylerBloom avatar Oct 28 '22 19:10 TylerBloom