Logical error

This commit is contained in:
guimoz 2017-01-27 09:40:15 +01:00
parent d062d4d503
commit 800f8dee99

View file

@ -187,7 +187,7 @@ def playable_required(f):
ip=get_ip()
user = get_player_from_ip(ip)
if not session['ip']:
if 'ip' in session:
# On enregistre l'ip afin d'éviter les problèmes lors du déplacement des user (rez <-> Supelec)
session['ip'] = ip