diff --git a/admin/menage_cableurs.py b/admin/menage_cableurs.py index de246343..169e5528 100755 --- a/admin/menage_cableurs.py +++ b/admin/menage_cableurs.py @@ -67,7 +67,7 @@ def candidats(): todo_list1 = db.search('droits=*')['adherent'] todo_list = [] for adh in todo_list1: - if ('Bureau' not in adh.droits()) and ('Nounou' not in adh.droits()) and ('Apprenti' not in adh.droits()) and (adh.droits()!=['MultiMachines']) and (config.ann_scol not in adh.paiement()): + if adh.droitsGeles(): todo_list.append(adh) todo_list.sort(lambda x, y: cmp((x.nom(), x.prenom()), (y.nom(), y.prenom()))) return todo_list