8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-11-24 20:33:11 +00:00

Remove return True in is_adherent and is_connected

This commit is contained in:
Hugo Levy-Falk 2019-09-01 23:40:06 +02:00 committed by root
parent b80e1252a2
commit 40b18084c8

View file

@ -425,7 +425,6 @@ class User(RevMixin, FieldPermissionModelMixin, AbstractBaseUser,
def is_adherent(self):
""" Renvoie True si l'user est adhérent : si
self.end_adhesion()>now"""
return True
end = self.end_adhesion()
if not end:
return False
@ -437,7 +436,6 @@ class User(RevMixin, FieldPermissionModelMixin, AbstractBaseUser,
def is_connected(self):
""" Renvoie True si l'user est adhérent : si
self.end_adhesion()>now et end_connexion>now"""
return True
end = self.end_connexion()
if not end:
return False