8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-11-09 03:16:25 +00:00

Fix compte mail , get_mail si redirection

This commit is contained in:
chirac 2018-06-29 18:53:39 +02:00 committed by Maël Kervella
parent bf189f4c4f
commit 7bb62daf42

View file

@ -679,10 +679,10 @@ class User(RevMixin, FieldPermissionModelMixin, AbstractBaseUser,
""" """
Return the mail address choosen by the user Return the mail address choosen by the user
""" """
if not OptionalUser.get_cached_value('mail_accounts') or not self.internal_address: if not OptionalUser.get_cached_value('mail_accounts') or not self.internal_address or self.redirection:
return self.external_mail return str(self.external_mail)
else: else:
return self.mail.mailalias_set.get(valeur=self.pseudo) return str(self.mailalias_set.get(valeur=self.pseudo))
def get_next_domain_name(self): def get_next_domain_name(self):
"""Look for an available name for a new interface for """Look for an available name for a new interface for