correction erreur dans la deconnexion globale

This commit is contained in:
Romain Beuque 2014-09-12 23:45:38 +02:00
parent bb2bd7c1e9
commit b858a716ef

View File

@ -179,7 +179,7 @@ class CotisationComputes:
cotisations = Cotisation.cotisations_of_member(user_session, member_dn, current_year)
#end if
#en septembre, on ne met pas de membre en old afin que les anciens ne soient pas deconnectes
return Room.get_by_member_dn(user_session, residence_dn, member_dn) == None or datetime.datetime.now().month != 9 or cotisations == []
return Room.get_by_member_dn(user_session, residence_dn, member_dn) == None or (datetime.datetime.now().month != 9 and cotisations == [])
#end def
@staticmethod