From 9cd166ca6958360d98b36ac49ce6aa0dafe8d51e Mon Sep 17 00:00:00 2001 From: Daniel STAN Date: Fri, 29 Aug 2014 09:21:03 +0200 Subject: [PATCH] auth.py: correct droits force_ma --- freeradius/auth.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/freeradius/auth.py b/freeradius/auth.py index 6406bec4..7cef2c3c 100644 --- a/freeradius/auth.py +++ b/freeradius/auth.py @@ -371,7 +371,7 @@ def decide_vlan(data, is_wifi, conn): # Si l'adhérent n'est pas membre actif, il doit se brancher depuis la # prise d'un autre adhérent à jour de cotisation force_ma = False - is_ma = proprio.has_key('droits') + is_ma = bool(proprio.get('droits', False)) if chbre is None and not is_ma: decision = "accueil", u"Chambre inconnue" elif chbre is not None: