diff --git a/freeradius/auth.py b/freeradius/auth.py index 95685091..52014d01 100644 --- a/freeradius/auth.py +++ b/freeradius/auth.py @@ -388,6 +388,10 @@ def decide_vlan(data, is_wifi, conn): is_ma = bool(proprio.get('droits', False)) if chbre is None and not is_ma: 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: for hebergeur in hebergeurs: # Si on est hébergé par un adhérent ok, ou que c'est notre