mirror of
https://github.com/Wessel/nhl-setgame.git
synced 2026-07-27 02:31:26 +02:00
fix(auth): Fix available sets showing when not admin
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user