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

@@ -241,7 +241,10 @@ public class CollectionRequestHandler extends LotroServerRequestHandler implemen
}
for (var tourney : _tournamentService.getLiveTournaments()) {
if(tourney.getInfo().Parameters().type == Tournament.TournamentType.CONSTRUCTED)
if (tourney.getInfo().Parameters().type == Tournament.TournamentType.CONSTRUCTED)
continue;
if (!tourney.isPlayerInCompetition(resourceOwner.getName()))
continue;
CollectionType collectionType = tourney.getCollectionType();