auth.py: pas d'anti-squattage pour les XclY

This commit is contained in:
Daniel STAN 2014-10-01 21:46:34 +02:00
parent 9d167a16da
commit 8b81118e30

View file

@ -388,6 +388,10 @@ def decide_vlan(data, is_wifi, conn):
is_ma = bool(proprio.get('droits', False)) is_ma = bool(proprio.get('droits', False))
if chbre is None and not is_ma: if chbre is None and not is_ma:
decision = "accueil", u"Chambre inconnue" decision = "accueil", u"Chambre inconnue"
elif 'cl' in chbre:
# Pour les locaux clubs, il n'y a pas forcément un club sédentaire
# (typiquement, les locaux sous digicode)
decision = decision[0], decision[1] + u' (local club)'
elif chbre is not None: elif chbre is not None:
for hebergeur in hebergeurs: for hebergeur in hebergeurs:
# Si on est hébergé par un adhérent ok, ou que c'est notre # Si on est hébergé par un adhérent ok, ou que c'est notre