mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-12-23 23:43:47 +00:00
Revert "Revert "Remove return True in is_adherent and is_connected""
This reverts commit 91028fd155
.
This commit is contained in:
parent
91028fd155
commit
ef05df5c98
1 changed files with 0 additions and 2 deletions
|
@ -425,7 +425,6 @@ class User(RevMixin, FieldPermissionModelMixin, AbstractBaseUser,
|
||||||
def is_adherent(self):
|
def is_adherent(self):
|
||||||
""" Renvoie True si l'user est adhérent : si
|
""" Renvoie True si l'user est adhérent : si
|
||||||
self.end_adhesion()>now"""
|
self.end_adhesion()>now"""
|
||||||
return True
|
|
||||||
end = self.end_adhesion()
|
end = self.end_adhesion()
|
||||||
if not end:
|
if not end:
|
||||||
return False
|
return False
|
||||||
|
@ -437,7 +436,6 @@ class User(RevMixin, FieldPermissionModelMixin, AbstractBaseUser,
|
||||||
def is_connected(self):
|
def is_connected(self):
|
||||||
""" Renvoie True si l'user est adhérent : si
|
""" Renvoie True si l'user est adhérent : si
|
||||||
self.end_adhesion()>now et end_connexion>now"""
|
self.end_adhesion()>now et end_connexion>now"""
|
||||||
return True
|
|
||||||
end = self.end_connexion()
|
end = self.end_connexion()
|
||||||
if not end:
|
if not end:
|
||||||
return False
|
return False
|
||||||
|
|
Loading…
Reference in a new issue