mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-12-23 07:23:46 +00:00
Fix compte mail , get_mail si redirection
This commit is contained in:
parent
bf189f4c4f
commit
7bb62daf42
1 changed files with 3 additions and 3 deletions
|
@ -679,10 +679,10 @@ class User(RevMixin, FieldPermissionModelMixin, AbstractBaseUser,
|
|||
"""
|
||||
Return the mail address choosen by the user
|
||||
"""
|
||||
if not OptionalUser.get_cached_value('mail_accounts') or not self.internal_address:
|
||||
return self.external_mail
|
||||
if not OptionalUser.get_cached_value('mail_accounts') or not self.internal_address or self.redirection:
|
||||
return str(self.external_mail)
|
||||
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):
|
||||
"""Look for an available name for a new interface for
|
||||
|
|
Loading…
Reference in a new issue