On rajoute la sanction p2p

darcs-hash:20060302122945-72cb0-fb8a5b983f37495f885eed09d47750f33fe34f16.gz
This commit is contained in:
salles 2006-03-02 13:29:45 +01:00
parent 6e4316e1fe
commit c9cbed4c7c

View file

@ -674,7 +674,7 @@ class firewall_komaz(firewall_crans) :
for entite in search['adherent']+search['club']+search['machine']: for entite in search['adherent']+search['club']+search['machine']:
self.anim.cycle() self.anim.cycle()
sanctions = entite.blacklist_actif() sanctions = entite.blacklist_actif()
if 'upload' in sanctions or 'warez' in sanctions or 'autodisc' in sanctions : if 'upload' in sanctions or 'warez' in sanctions or 'p2p' in sanctions or 'autodisc' in sanctions :
from ldap_crans import machine from ldap_crans import machine
if entite.__class__ == machine: if entite.__class__ == machine:
blacklist+=[entite] blacklist+=[entite]