Fixed draft games collections showing up for people not part of said games

This commit is contained in:
jakub.salavec
2025-04-14 12:24:59 +02:00
parent d6136062fd
commit c0b73ab1f8

View File

@@ -244,6 +244,9 @@ public class CollectionRequestHandler extends LotroServerRequestHandler implemen
if (tourney.getInfo().Parameters().type == Tournament.TournamentType.CONSTRUCTED)
continue;
if (!tourney.isPlayerInCompetition(resourceOwner.getName()))
continue;
CollectionType collectionType = tourney.getCollectionType();
Element collectionElem = doc.createElement("collection");
collectionElem.setAttribute("type", collectionType.getCode());