fix(auth): Fix available sets showing when not admin

This commit is contained in:
2025-04-24 10:08:23 +02:00
parent 8a919c7cda
commit 124491c32c
2 changed files with 23 additions and 17 deletions

View File

@@ -65,6 +65,10 @@ public class GameService(IGameRepository gameRepository) : IGameService {
}
public async Task<List<int[]>> GetSetsInHandAsync(long gameId, long userId) {
if (userId > 0) {
return [];
}
var game = await _gameRepository.GetGameByIdAsync(gameId, userId);
if (game == null) {