freeradius/auth.py: petites typo logique

This commit is contained in:
Daniel STAN 2014-08-24 15:42:56 +02:00
parent 5f9ee2e593
commit 2134a11b44

View file

@ -352,7 +352,7 @@ def decide_vlan(data, is_wifi, conn):
# prise d'un autre adhérent à jour de cotisation
force_ma = False
is_ma = proprio.has_key('droits')
if chbre is None and is_ma:
if chbre is None and not is_ma:
decision = "accueil", u"Chambre inconnue"
elif chbre is not None:
chbre = escape_ldap(chbre)