fixed user's destination property

self.forward_destination is a list (and not string)
master
Alexander Graf 4 years ago
parent 5dfccdafe9
commit c26ddd3c68

@ -346,10 +346,10 @@ class User(Base, Email):
@property
def destination(self):
if self.forward_enabled:
result = self.forward_destination
result = list(self.forward_destination)
if self.forward_keep:
result += ',' + self.email
return result
result.append(self.email)
return ','.join(result)
else:
return self.email

Loading…
Cancel
Save