diff options
author | lonkaars <l.leblansch@gmail.com> | 2021-04-16 11:37:52 +0200 |
---|---|---|
committer | lonkaars <l.leblansch@gmail.com> | 2021-04-16 11:37:52 +0200 |
commit | b9a935cf545db36d714b44fdea96f448de67271e (patch) | |
tree | a615e2a569a76c42f28f0f70b572be306b07c6c5 /api/game/socket.py | |
parent | 433fbdac908ca600cf8ecc254c5a4bc17dca3477 (diff) |
all login_token()'s removed in favor of @auth_required()
Diffstat (limited to 'api/game/socket.py')
-rw-r--r-- | api/game/socket.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/api/game/socket.py b/api/game/socket.py index 6038586..69dc07e 100644 --- a/api/game/socket.py +++ b/api/game/socket.py @@ -4,7 +4,6 @@ from game.voerbak_connector import bord from db import cursor, connection from socket_io import io from hierarchy import io_auth_required -from auth.login_token import token_login import time import json @@ -23,12 +22,12 @@ def participants_only(func): game_id = data["game_id"] if not game_id or \ - not game_id in games: + not game_id in games: return game = games[game_id] if game.player_1_id != user_id and \ - game.player_2_id != user_id: + game.player_2_id != user_id: return return func(data, user_id, game) |