[radius_auth] artefact du BatG

Ignore-this: 8b00805113e688b41bd5e81e0d552d99
Quand le bâtiment était routé à part, c'est bien ça ?

darcs-hash:20121107164118-28565-f132011974a9920f64ad19ff0389bae993f8cc56.gz
This commit is contained in:
Daniel STAN 2012-11-07 17:41:18 +01:00
parent 3920ac216a
commit 9af8daef9d

View file

@ -40,8 +40,7 @@ def do_auth(mac):
if len(m) == 0: if len(m) == 0:
return (0, "Mac inconnue", "accueil") return (0, "Mac inconnue", "accueil")
elif len(m) > 1: elif len(m) > 1:
if not m[0].proprietaire().chbre().startswith('G'): return (-1, "Pb recherche mac (nb résultat %d!=1)" % len(m), "")
return (-1, "Pb recherche mac (nb résultat %d!=1)" % len(m), "")
# N'appartient pas au Crans et n'a pas de prise attribuée # N'appartient pas au Crans et n'a pas de prise attribuée
# donc sur uplink ou switch non filtré # donc sur uplink ou switch non filtré