[radius_auth.py] Appartements de l'ENS
Ignore-this: b874519e007921c54c55e2b354d2a2cc darcs-hash:20090302140219-bd074-e3ea8cc4f3b6080e4b7bddb0af18d95cb374ce9e.gz
This commit is contained in:
parent
a8446f5f27
commit
091981f029
1 changed files with 18 additions and 14 deletions
|
@ -58,7 +58,7 @@ def do_auth(mac):
|
|||
|
||||
# L'adherent ne paie pas, on le met sur le vlan radin
|
||||
if not isinstance(proprio, Club) and not proprio.adherentPayant():
|
||||
return (0, "Ne paie pas", "radin")
|
||||
return (0, "Ne paie pas", "gratuit")
|
||||
|
||||
# Paiment ok ?
|
||||
paid = max(proprio.paiement() + [0])
|
||||
|
@ -71,6 +71,10 @@ def do_auth(mac):
|
|||
if ann_scol > paid:
|
||||
return (0, "N'a pas payé", "accueil")
|
||||
|
||||
# Cas des personnels logés dans les appartements de l'ENS
|
||||
if proprio.etudes(0) == 'Personnel ENS':
|
||||
return (0, "Personnel ENS", "appts")
|
||||
|
||||
# C'est bon
|
||||
return (0, "Accès adhérent OK", "adherent")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue