Protection anti Clara

This commit is contained in:
Hugo Levy-Falk 2018-01-16 10:36:42 +01:00 committed by root
parent a5e1141763
commit 0350cb094f

View file

@ -146,7 +146,7 @@ def playable_required(f):
return render_template('not_subscribed.html',stats=statistiques())
# Un utilisateur banni ne peut pas jouer
elif is_banned(user['id']):
elif is_banned(user['id']) and ('up' in STATE):
return banned()
return f(*args, **kwargs)