From cf2d1dcda4d329410301fd5c0612ba454d02f911 Mon Sep 17 00:00:00 2001 From: Daniel STAN Date: Sat, 11 Oct 2014 11:24:15 +0200 Subject: [PATCH] =?UTF-8?q?Revert=20"auth.py:=20squatteur=20si=20hebergeur?= =?UTF-8?q?=20blacklist=C3=A9=20s=C3=A9v=C3=A8re"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit c'était une bêtise This reverts commit da5e12241d189146935088c03cfd90b6c2d93788. --- freeradius/auth.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/freeradius/auth.py b/freeradius/auth.py index e0452263..52014d01 100644 --- a/freeradius/auth.py +++ b/freeradius/auth.py @@ -396,11 +396,7 @@ def decide_vlan(data, is_wifi, conn): for hebergeur in hebergeurs: # Si on est hébergé par un adhérent ok, ou que c'est notre # chambre, pas de problème - if hebergeur.dn == proprio.dn: - break - if not any(bl.value['type'] in bl_reject or - bl.value['type'] in bl_accueil for - bl in hebergeur.blacklist_actif()): + if hebergeur.dn == proprio.dn or not hebergeur.blacklist_actif(): break else: # Si tous les hebergeurs sont blacklistés, autoriser