diff --git a/freeradius/auth.py b/freeradius/auth.py index 6406bec4..7cef2c3c 100644 --- a/freeradius/auth.py +++ b/freeradius/auth.py @@ -371,7 +371,7 @@ def decide_vlan(data, is_wifi, conn): # Si l'adhérent n'est pas membre actif, il doit se brancher depuis la # prise d'un autre adhérent à jour de cotisation force_ma = False - is_ma = proprio.has_key('droits') + is_ma = bool(proprio.get('droits', False)) if chbre is None and not is_ma: decision = "accueil", u"Chambre inconnue" elif chbre is not None: